title: .Net 3.5 App Start Error
body: <p>I have .net 3.5 app that I built in VS 2008. App works fine on my pc and other pc's i have tried. I have also published on several other production servers.</p>
  
  <p>But my app on a particular server does not work. I have checked permissions, gave them to iisusrs, network service. Tried running process mon. but no luck. Would appreciate if somebody can help me.</p>
  
  <blockquote>
    <p>[NullReferenceException: Object reference not set to an instance of an
    object.]    Project.Global..cctor() +500</p>
    
    <p>[TypeInitializationException: The type initializer for
    'Product.Global' threw an exception.]    Project.Global..ctor() +0<br>
    ASP.global_asax..ctor() in
    c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
    Files\Project\5b298990\c958346b\App_global.asax.aqngqd-g.0.cs:0</p>
    
    <p>[TargetInvocationException: Exception has been thrown by the target of
    an invocation.]    System.RuntimeTypeHandle.CreateInstance(RuntimeType
    type, Boolean publicOnly, Boolean noCheck, Boolean&amp; canBeCached,
    RuntimeMethodHandle&amp; ctor, Boolean&amp; bNeedSecurityCheck) +0<br>
    System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean
    fillCache) +146    System.RuntimeType.CreateInstanceImpl(Boolean
    publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +298<br>
    System.Activator.CreateInstance(Type type, Boolean nonPublic) +79<br>
    System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder
    binder, Object[] args, CultureInfo culture, Object[]
    activationAttributes) +10371979<br>
    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
    appContext, HttpContext context) +258<br>
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr
    appContext) +382</p>
    
    <p>[HttpException (0x80004005): Exception has been thrown by the target
    of an invocation.]<br>
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11411878
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
    wr, HttpContext context) +4401140</p>
  </blockquote>