问题描述:
当用户升级完Exchange版本或更新CU版本后,打开管理中心页面可能会出现以下报错。这些报错可能发生在部分特定的页面,也可能出现在所有页面。

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\ecp\67f1ad38\e5546d0a\2hgnukdj.cmdline".
Source Error:
Line 1: <%@ Page Language="C#" CodeBehind="Default.aspx.cs"
Line 2: Inherits="Microsoft.Exchange.Management.ControlPanel._Default" %>
Line 3: <%@ Register Src="~/Troubleshooting/NotificationTemplate.ascx" TagName="Notification" TagPrefix="ecp" %>
Line 4:
Line 5: <% Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetNoStore(); %>
Source File: /ecp/default.aspx Line: 3
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3535.0
排错步骤:
1. 首先确保.NET Framework版本与当前Exchange版本匹配。
可以查看官方文档可支持性矩阵看是否匹配:Microsoft .NET Framework
查询当前服务器的.NET Framework版本可使用以下官方文档中提供的方法
如何:确定已安装的 .NET Framework 版本
2. 尝试从IIS Manager回收应用程序池中的MSExchangeECPAppPool。
Application Pools > MSExchangeECPAppPool > Recycle.

3. 查看IIS Manager中BinSearchFolders值是否正确
Sites > Exchange Back End > ecp > Application Settings > BinSearchFolders


查看值是否为右侧列出的,如果不是先将旧值备份再替换为右侧值:C:\Program Files\Microsoft\Exchange Server\V15\bin;C:\Program Files\Microsoft\Exchange Server\V15\bin\CmdletExtensionAgents;C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\Owa\bin
4. 重新运行UpdateCas.ps1与UpdateConfigFiles.ps1文件
路径为:C:\Program Files\Microsoft\Exchange Server\V15\Bin
可直接在源路径运行也可将文件复制到别的路径下运行

参考链接:
https://social.technet.microsoft.com/Forums/ie/en-US/7c36836c-0223-4bfe-8a36-24db8a021507/error-in-ecp-and-owa-after-update?forum=exchangesvrdeploy
https://social.technet.microsoft.com/Forums/en-US/33a24740-66ce-42eb-8ea2-66fe861e2db0/after-upgrade-to-exchange-2013-cu23-i-can-not-open-administration-site?forum=exchangesvrgeneral
【关键词】Server Error in '/ecp' Application ECP,升级后ECP报错
希望上述信息能够帮到您。如果您对此还有其他问题,欢迎随时来我们论坛提问 (点击文章页面左上角的“提出问题”按钮快速发帖),我们会帮助您进一步调查这个问题。
如果帖子有帮到您的话,请点击左上方“投票”按钮。这将帮助到阅读这个帖子的其他用户。