1

我目前有一个客户需要在 Visual Studio 2005 中处理一个项目,其中包括几个班级项目和两个网站。安装 VS 2012 RC 后,我现在在任何 asp.net 项目、现有或新创建的默认网站模板上都收到以下错误。只有 VS 2005 受到影响,2010 仍然可以正常工作。

我已卸载 VS 2012,然后卸载然后重新安装以下内容,但无济于事:.NET 2.0 Framework,VS 2005

Server Error in '/WebSite1' 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: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[InvalidProgramException: Common Language Runtime detected an invalid program.]
   System.ServiceModel.HostingManager..ctor() +0
   System.ServiceModel.ServiceHostingEnvironment.EnsureInitialized() +236
   System.ServiceModel.ServiceHostingEnvironment.OnEnsureInitialized(Object state) +4
   System.ServiceModel.PartialTrustHelpers.PartialTrustInvoke(ContextCallback callback, Object state) +52
   System.ServiceModel.ServiceHostingEnvironment.SafeEnsureInitialized() +73
   System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +220
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +348




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5459 
4

0 回答 0