title: HttpContext.GetGlobalResourceObject not exist in Class Library
body: <p>I'm writing various class libraries (tools and helpers) for my future ASP.Net project.</p>
  
  <p>Right now my solution doesn't have web project, but it's not supposed to be a problem.
  I added reference to System.Web to project and now I able to access HttpContext in code.</p>
  
  <p>Below my code for resource manager class that suppose to get application global resources:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Text;
  using System.Web;
  
  namespace ResourceManager
  {
      public class ResourceManager : IResourceManager
      {
          HttpContext context;
  
          public ResourceManager(HttpContext ctx)
          {
              context = ctx;
          }
  
          public string GetError(string key)
          {
              return context.GetGlobalResourceObject("Errors", key).ToString();
          }
  
          //And so on........
      }
  }
  </code></pre>
  
  <p>But unfortunately <strong>Visual Studio</strong> intellisense can't find <strong>GetGlobalResourceObject</strong>. </p>
  
  <p>Hitting <strong>F12</strong>  and I can see this static function inside <strong>HttpContext</strong> class.</p>
  
  <p>After running build I'm getting this error message:</p>
  
  <p><strong>Member 'HttpContext.GetGlobalResourceObject(string, string)' cannot be accessed with an instance reference; qualify it with a type name instead</strong></p>
  
  <p>It's strange behaviour and interesting for me why it's happening.</p>
  
  <p>Thanks for help</p>