Error in getting value from Resource file "Missing Manifest Resource Exception?" RRS feed

  • Question

  • User1873021392 posted

     Hi all,


    I m working on Visual Web Developer 2008 and created Web application named "Resource" that is built properly. In this, i have created one resource file "Resource1.resx" in Asp.Net Folder "App_GlobalRsources".

    I have one Test.aspx page and in its Test.aspx.cs page, i m trying to get value from Resource1.resx by using this way :

    ResourceManager rm = new  ResourceManager("Resource.Resource1",Assembly.GetExecutingAssembly());

    string value = rm.GetString("String1"); 

     I have set Build Action to "Embedded Resource" for Resource1.resx also.

    But, on Start debugging web application, Exception is thrown "Missing Manifest Resource Exception" at line of " rm.GetString("String1") ".

     Please, guide me to get the value from resource file.

    Thanking you.



    Saturday, April 11, 2009 3:43 AM

All replies