HttpContext.GetGlobalResourceObject Always null from Class Library
<p>I have a resx file in App_GlobalResources in my web application, called with:</p>

<pre><code>Resources.GetResource("ResourceFileName", "Resource")
</code></pre>

<p>The helper method lives in a separate class library to get resource values:</p>

<pre><code>using System.Resources;
using System.Web;

public static class Resources
{
    public static string GetResource(string resource, string key)
    {
        try
        {
            string resourceValue = (string)HttpContext.GetGlobalResourceObject(resource, key);

            return string.IsNullOrEmpty(resourceValue) ? string.Empty : resourceValue;
        }
        catch (MissingManifestResourceException)
        {
            return string.Empty;
        }
    }
}
</code></pre>

<p>If I hit F5, everything works fine. If I deploy to a web server, <strong>all</strong> calls to GetGlobalResourceObject come back as null.</p>

<p>The resources exist. How do I get them out?</p>

<p>Thanks,</p>

<p>Richard</p>
