Last post Jun 20, 2017 05:42 AM by hkholakiya
Mar 14, 2014 04:04 PM|simple_fahad2005|LINK
I am using resource file but i have created separate class library project for Localization name is Localization.Service and add resource files in it name of resource files are Strings.en-US and Strings.ar-SA and it has one value UsrName.
When i am trying to get resource file data from aspx file so it is giving error "The resource object with key UsrName was not found".
Vallet Parking is my solution file mentioned in code.
My Code is below:
<asp:Label ID="lblUserName" runat="server" AssociatedControlID="UserName" Text="<%$ Resources:ValletParking.Localization.Service.Strings,UsrName %>"></asp:Label>
Thanks in advance.
Jun 20, 2017 05:42 AM|hkholakiya|LINK
Simply you have to make your resource project access modifier public:
Select your resource file class library and press F4, property window will show up and change access modifier to public. Rebuild your project and try again.