Last post Jun 21, 2017 05:57 PM by developer_microsoft
Jun 19, 2017 05:39 PM|developer_microsoft|LINK
I have two resX files custom.resx and custom.de-DE.resx with two id's label1 and label2. And i have an custom.aspx page.
I have set the properties of resX file like Build Action--> Embedded Resources. I have done explicit localization for the lables in ASP.NET. Now when i build the application it went well and created resource file dll. Which is good.
Explicit Localization i done like this
<%$ Resources: custom, label1%>
Now i deployed whole application in IIS by removing resX files since i have dll files based on culture. When i run this application from my browser it says that
PARSE ERROR: The Resource key with 'label1' is not found.
I can't figure out why that error is showing up. Am expecting explicit localization is not working with dll files. If that way it doesn't work than what is use of dll files.
Help me from this. Thanks in advance.
Jun 19, 2017 09:01 PM|aj_ankit85|LINK
Please check the Build Action property of each .resx file. In my project I set to "Embedded Resource". and custom tool is set to PublicResXFileCodeGenerator
Access modifier of the .resx file is set to public. Please give a try
Jun 21, 2017 05:57 PM|developer_microsoft|LINK
No change, showing same error