纽曼斯益生菌:ASP.NET的问题,各位大侠帮我看看,小弟谢过了

来源:百度文库 编辑:高考问答 时间:2024/04/29 20:55:40
Server Error in '/dms1' 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:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

[InvalidProgramException: Common Language Runtime detected an invalid program.]
WebStarCRM.Global..ctor() +0
ASP.Global_asax..ctor() +5

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly) +68
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +175
System.Activator.CreateInstance(Type type, Boolean nonPublic) +61
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1091
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +113
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance() +189
System.Web.HttpApplicationFactory.FireApplicationOnStart(HttpContext context) +3480963
System.Web.HttpApplicationFactory.EnsureAppStartCalled(HttpContext context) +154
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +84
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +191

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:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

[InvalidProgramException: Common Language Runtime detected an invalid program.]
WebStarCRM.Global..ctor() +0
ASP.Global_asax..ctor() +5

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly) +68
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +175
System.Activator.CreateInstance(Type type, Boolean nonPublic) +61
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1091
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +113
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance() +189
System.Web.HttpApplicationFactory.FireApplicationOnStart(HttpContext context) +3480963
System.Web.HttpApplicationFactory.EnsureAppStartCalled(HttpContext context) +154
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +84
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +191