And i also add resource.in-hi.resx,resource.en-gb.resx and resource.frc-fr.resx in app-globalresources.
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0101: The namespace 'Resources' already contains a definition for 'Resource'
Source Error:
Line 24: [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 25: [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
Line 26: public class Resource {
Line 27:
Line 28: private static global::System.Resources.ResourceManager resourceMan;
Source File: c:\Users\WELCOME-PC\AppData\Local\Temp\Temporary ASP.NET Files\vs\05991b72\6430a067\App_GlobalResources.3k0bpfp9.1.cs Line: 26
Show Detailed Compiler Output:
Show Complete Compilation Source:
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
1 Points
2 Posts
localization and globalization in resource.resx and i have error in this
Jan 05, 2017 12:20 PM|oneprachi@outlook.com|LINK
%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:Label ID="Label1" runat="server" Text="<%$Resources:Resource,photo%>"></asp:Label> </div> </form> </body> </html>
And i also add resource.in-hi.resx,resource.en-gb.resx and resource.frc-fr.resx in app-globalresources.
this above error is shown to me..
All-Star
45489 Points
7008 Posts
Microsoft
Re: localization and globalization in resource.resx and i have error in this
Jan 06, 2017 07:51 AM|Zhi Lv - MSFT|LINK
Hi oneprachi,
As for this issue, please check the culture name is correct.
Here are some relevant threads with the same error, you could refer to them:
https://forums.asp.net/t/1206789.aspx?+The+namespace+Resources+already+contains+a+definition+for+
http://stackoverflow.com/questions/25054511/the-namespace-resources-already-contains-a-definition-for-siteresources
Best regards,
Dillion
Member
1 Points
2 Posts
Re: localization and globalization in resource.resx and i have error in this
Jan 06, 2017 09:51 AM|oneprachi@outlook.com|LINK
Thank you Dillion for helping me to remove error and finding solution. I found the error with your references.