Last post Jan 09, 2009 06:00 PM by xavierx
Jan 09, 2009 09:28 AM|fizzer|LINK
I'm wrinting an ASP.net mobile website.I believe from what i've read that I should be using an instance of the ResouceManager class to use resource files. I'm trying to use the following constructor:
ResourceManager(String, Assembly) where String is the root name of the Resource file. I have a resource file called resource.resx so is the root name "resource"? If not how do I find root name?
I'm using the following code to set a label text
Dim LocRM As New System.Resources.ResourceManager("Resource", Me.GetType.Assembly)
Me.lblWelcome.Text = LocRM.GetString("WelcomeMessage")
But it errors on the constructor with: MissingManifestResourceException was unhandled by user code - "Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Resource.resources" was correctly embedded or linked
into assembly "App_Web_zstyyisu" at compile time, or that all the satellite assemblies required are loadable and fully signed."
Any ideas what i'm doing wrong. I think its just because I don't know how to get the root name maybe?
Jan 09, 2009 06:00 PM|xavierx|LINK
I think what you have to do is make sure you convert the .resx file to a .resources file via the resgen function. You might want to read into that. I remember having a similar problem a while back but i forgot how i fixed it, but what i said might have been
the solution :P