Read values from resx files?

Posted by Nimesh on Stack Overflow See other posts from Stack Overflow or by Nimesh
Published on 2010-04-17T11:22:16Z Indexed on 2010/04/17 11:23 UTC
Read the original article Hit count: 488

How to read strings from the MyResource.resx file from c#. I am not calling this from the asp.net page, rather i am calling from my bussiness logic.

Assembly assembly = this.GetType().Assembly;
ResourceManager resourceManager = new ResourceManager("MessagesResource", assembly);
resourceManager.GetString("SCHEME_UNQ");

here i am getting exception,

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "MessagesResource.resources" was correctly embedded or linked into assembly "App_Web_eerdggo8" at compile time, or that all the satellite assemblies required are loadable and fully signed.

How can i fix this issue????

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about localization