Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

We are updating our production server from Windows 2003 R2 to Windows 2012 R2.
We have Installed IIS 8.5 on new server.
We have applications for DotNet4.0 in ASP.Net.
Everything is working fine on old server, but same applications on new server, give error saying

The resource object with key 'Header_CreateRole' was not found.

We have not done any change in application, just copy pasted the Virtual directory from one server to another.

This is the syntax I am using for reading values from .resx file on ASPX page.

LabelHeading="<%$ Resources:Resource,Header_CreateRole %>"

Has anybody faced such issue, please help.

What I have tried:

I changed the Syntax for reading resource file as below. this does not give error but text is not displayed on screen.

LabelHeading="<%# Resources.Resource.Header_CreateRole %>"
Posted
Comments
Richard Deeming 7-Apr-17 9:51am    
Check that the system locale settings are the same on both servers.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900