安装VS2012后,Common Language Runtime在VS2005中检测到无效程序

时间:2013-01-14 15:04:24

标签: c# asp.net .net-2.0

我目前有一个客户端,需要在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 

0 个答案:

没有答案