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

Discussion in 'Microsoft Dot NET' started by Oliver Degnan, Jul 29, 2003.

  1. 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
     
    Oliver Degnan, Jul 29, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Niels
    Replies:
    0
    Views:
    159
    Niels
    Nov 17, 2003
  2. Guest
    Replies:
    1
    Views:
    339
    Guest
    Nov 23, 2004
  3. Neil Moss

    resx files and BuildAction

    Neil Moss, Feb 10, 2005, in forum: Microsoft Dot NET
    Replies:
    0
    Views:
    587
    Neil Moss
    Feb 10, 2005
  4. Navin Mishra
    Replies:
    1
    Views:
    183
    sonic
    Aug 25, 2006
  5. Replies:
    1
    Views:
    255
Loading...

Share This Page