PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average.

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

 
 
Oliver Degnan
Guest
Posts: n/a
 
      29th Jul 2003
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to convert from Pegasus to Outlook. How to convert =?Utf-8?B?SGFycnk=?= Microsoft Outlook Discussion 1 24th Feb 2005 09:00 PM
Best way to convert to NTFS? Partition Magic 8 vs convert C: /fs:ntfs SR Windows XP General 11 17th Feb 2005 03:28 AM
Convert Fat 32 to NTFS fails to Convert Why? =?Utf-8?B?QmFycnkgKE1haW5tZW51KQ==?= Windows XP General 1 2nd Sep 2004 12:20 PM
How Do I Convert My CD Writer to RAW To Convert CD-Gs Mick Windows XP General 1 26th Sep 2003 09:46 PM
Re: Time limit for "convert c: /fs:ntfs" (convert FAT to NTFS)? John Windows XP General 1 10th Jul 2003 05:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:02 AM.