我收到了关于web.config的错误,内容为"There was as error while performing this operation"。我遵循以下配置:
- 操作系统为Windows Server 2012 R2,IIS版本为8.5。
- URL Rewrite 2.1模块已安装在计算机上。
- IIS_IUSRS拥有目录的完全访问权限。
- 已安装应用程序初始化模块。
- .Net CLR版本为v4.0.30319,托管管道模式为集成模式。
- IIS配置如下图所示:
- web.config文件如下图所示:
浏览页面时,我收到如下消息:
但是,当我去掉的时候
从 web.config 文件中,我没有收到 "(There was as error while performing this operation)" 这个错误,但我收到了以下错误:
![enter image description here](https://istack.dev59.com/czE8V.webp)
![enter image description here](https://istack.dev59.com/MnGSL.webp)
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\MES.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</configuration>
<!--ProjectGuid: e8701310-485f-4f88-b7d0-1473d07238ac-->
浏览页面时,我收到如下消息:
![enter image description here](https://istack.dev59.com/K0hWT.webp)
<aspNetCore processPath="dotnet" arguments=".\MES.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
从 web.config 文件中,我没有收到 "(There was as error while performing this operation)" 这个错误,但我收到了以下错误:
![enter image description here](https://istack.dev59.com/SUewr.webp)