By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,009 Members | 1,273 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,009 IT Pros & Developers. It's quick & easy.

.RESX files in ASP.NET applications. VS.NET doesn't convert to .resource files

P: n/a
O.K. So I added a new resource file to my web application called
"web.site.resx".

Now, I thouhgt I should be able to access my resources like this:

ResourceManager res = new ResourceManager("web.site",
Assembly.GetExecutingAssembly());
string t =res.GetString("SomeText");

But, I am getting the following error:

System.Resources.MissingManifestResourceException: Could not find any
resources appropriate for the specified culture (or the neutral
culture) in the given assembly. Make sure "web.site.resources" was
correctly embedded or linked into assembly "web.site". baseName:
web.site locationInfo: <null> resource file name:
DMG.web.site.resources assembly: web.site, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null

Can anyone please tell me how to use .resx files in ASP.NET apps?
Thank you very much!

Oli
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.