title: Read Value from Resource file using String
body: <p>I have an enum with some data on it, also I have a resource file with the same data of the enum but using different translation</p>
  
  <p><strong>Ex.</strong></p>
  
  <pre><code>enum test
  {
      Sun =1,
      Mon = 2
  }
  
  The resource file : Text.resx
  
  Sun --&gt; Sunday
  Mon --&gt; Monday
  </code></pre>
  
  <p>Now I want to get the value from the resource file but not using</p>
  
  <pre><code>string data = Resources.Text.Sun; 
  </code></pre>
  
  <p>but using my enum value , I have found some code but I have an exception, the code is following :</p>
  
  <pre><code>string resourceFile = "~/App_GlobalResources/Text.resx";
  string filePath = System.AppDomain.CurrentDomain.BaseDirectory.ToString();
  ResourceManager resourceManager = ResourceManager.CreateFileBasedResourceManager(resourceFile, filePath, null);
  string resourceValue = resourceManager.GetString(myEnum.ToString());
  </code></pre>
  
  <p>and I got the following Exception</p>
  
  <blockquote>
    <p>Could not find any resources appropriate for the specified culture (or
    the neutral culture) on disk. baseName:
    ~/App_GlobalResources/Text.resx  locationInfo:   fileName:
    ~/App_GlobalResources/Text.resx.resources</p>
  </blockquote>
  
  <p>please help as soon as you can</p>
  
  <p>Thanks in Advance</p>