日期:2014-05-19  浏览次数:21173 次

在调试.net源程序中出现的问题,请大家给予帮助.
我在用IIS调试.net源程序时出现以下问题

Server   Error   in   '/ '   Application.
--------------------------------------------

Common   Language   Runtime   detected   an   invalid   program.  
Description:   An   unhandled   exception   occurred   during   the   execution   of   the   current   web   request.   Please   review   the   stack   trace   for   more   information   about   the   error   and   where   it   originated   in   the   code.  

Exception   Details:   System.InvalidProgramException:   Common   Language   Runtime   detected   an   invalid   program.

Source   Error:  


Line   30:                   private   static   bool   __initialized   =   false;
Line   31:                  
Line   32:                   public   Global_asax()   {
Line   33:                           if   ((ASP.Global_asax.__initialized   ==   false))   {
Line   34:                                   ASP.Global_asax.__initialized   =   true;
 

Source   File:   c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary   ASP.NET   Files\root\8073f566\7100ac34\r4tmt9vb.0.cs         Line:   32  

Stack   Trace:  


[InvalidProgramException:   Common   Language   Runtime   detected   an   invalid   program.]
      TourOnline.Global..ctor()   +0
      ASP.Global_asax..ctor()   in   c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary   ASP.NET   Files\root\8073f566\7100ac34\r4tmt9vb.0.cs:32

[TargetInvocationException:   Exception   has   been   thrown   by   the   target   of   an   invocation.]
      System.RuntimeType.CreateInstanceImpl(Boolean   publicOnly)   +0
      System.Activator.CreateInstance(Type   type,   Boolean   nonPublic)   +66
      System.RuntimeType.CreateInstanceImpl(BindingFlags   bindingAttr,   Binder   binder,   Object[]   args,   CultureInfo   culture,   Object[]   activationAttributes)   +655
      System.Activator.CreateInstance(Type   type,   BindingFlags   bindingAttr,   Binder   binder,   Object[]   args,   CultureInfo   culture,   Object[]   activationAttributes)   +200
      System.Web.HttpApplicationFactory.GetSpecialApplicationInstance()   +160
      System.Web.HttpApplicationFactory.FireApplicationOnStart(HttpContext   context)   +20
      System.Web.HttpApplicationFactory.Init(HttpContext   context)   +497
      System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext   context)   +170
      System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest   wr)   +414