title: How to get the value from global resource file in class library
body: <p>I have two versions of visual studio 2010 installed on two laptops. One machine has VS2010 professional edition. another one has VS2010 Ultimate RTM.</p>
  
  <p>I have created a website, where I would like to get the value of common messages from Resource file. (in App_GlobalResource Folder).</p>
  
  <p>From aspx. I can read the resx file and set the value dynamically. Also, I am able to get the value from resx file at runtime.</p>
  
  <p>My problem is when I trying to read the value from class Library, it is throwing error in RTM version (2010 ultimate), where as the below code is working fine in professional edition of VS2010.</p>
  
  <p>I referenced Class library dll in my website.</p>
  
  <p><img src="https://i.stack.imgur.com/8f4gB.png" alt="read resx content from class library"></p>
  
  <p>The objective is I have created the above code in separate class file. So that i can read the value from resx file from both website and class library.</p>
  
  <p>Any help is much appreciated. I want to know why the code works only on professional edition and not on RTM version?</p>
  
  <p>Edited: </p>
  
  <pre><code> public class Class1
   {
      public static string GetResourceFileValueByKey(string Key)
      {
       ResourceManager lang = new ResourceManager("Resources.GeneralInfos", Assembly.Load("App_GlobalResources"));
       string value = lang.GetString(Key);
       return value;
      }
   }
  </code></pre>