Model view controller 无法加载文件或程序集';Microsoft.EnterpriseManagement.OperationsManager.Apm.DataCollection.Producers.Mvc.4.0

Model view controller 无法加载文件或程序集';Microsoft.EnterpriseManagement.OperationsManager.Apm.DataCollection.Producers.Mvc.4.0,model-view-controller,iis-8,windows-server-2016,Model View Controller,Iis 8,Windows Server 2016,我们运行的是Windows Server 2008 R2,升级到2016年,此后我们的应用程序停止运行。ASP.NET Web窗体仍在运行,似乎只有MVC停止运行 他们都遇到了HTTP 503错误,在重新绘制IIS URL重写模块2后,他们开始抛出以下错误: “/Mail”应用程序中出现服务器错误 Could not load file or assembly 'Microsoft.EnterpriseManagement.OperationsManager.Apm.DataCollecting

我们运行的是Windows Server 2008 R2,升级到2016年,此后我们的应用程序停止运行。ASP.NET Web窗体仍在运行,似乎只有MVC停止运行

他们都遇到了HTTP 503错误,在重新绘制IIS URL重写模块2后,他们开始抛出以下错误:

“/Mail”应用程序中出现服务器错误

Could not load file or assembly 'Microsoft.EnterpriseManagement.OperationsManager.Apm.DataCollecting.Producers.Mvc.4.0, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. 
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.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.EnterpriseManagement.OperationsManager.Apm.DataCollecting.Producers.Mvc.4.0, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

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.  

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.EnterpriseManagement.OperationsManager.Apm.DataCollecting.Producers.Mvc.4.0, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.



WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Stack Trace: 



[FileNotFoundException: Could not load file or assembly 'Microsoft.EnterpriseManagement.OperationsManager.Apm.DataCollecting.Producers.Mvc.4.0, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +0
System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +194
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +80
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) +70
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext上下文、异步回调cb、对象外部数据)+18

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+444
System.Web.HttpApplication.ExecuteStep(IExecutionStep步骤,布尔值&同步完成)+157


版本信息:Microsoft.NET Framework版本:4.0.30319;ASP.NET版本:4.7.2106.0

我通过做两件事来解决这个问题:

  • 正在修复IIS URL重写模块

  • 正在卸载Microsoft Monitoring Agent,该Agent包含MVC应用程序抱怨的程序集