Blazor template HTTP Error 500.24 - Internal Server Error : system.web/identity@impersonate is set to true
Blazor template HTTP Error 500.24 - Internal Server Error : system.web/identity@impersonate is set to true
当我 运行 未触及的 Blazor 项目时,我 运行 遇到了上述错误。
很多这样post
不同之处在于没有 "web.config" 文件。 更新 "web.config" 文件以在 Core 和 MVC 中运行以下代码。
<system.web>
<identity impersonate="false"/>
</system.web>
在 IIS 管理器中将 system.web/identity/impersonate 设置为 false。请参阅以下 post 中 Francesco B 的回复:
如果您没有 web.config 文件,您可以通过
添加一个
right click the project and click add => new item
and from there select web configuration file and name it web.config
在 web.config 文件中添加以下行
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
</system.webServer>
</configuration>
当我 运行 未触及的 Blazor 项目时,我 运行 遇到了上述错误。
很多这样post
不同之处在于没有 "web.config" 文件。 更新 "web.config" 文件以在 Core 和 MVC 中运行以下代码。
<system.web>
<identity impersonate="false"/>
</system.web>
在 IIS 管理器中将 system.web/identity/impersonate 设置为 false。请参阅以下 post 中 Francesco B 的回复:
如果您没有 web.config 文件,您可以通过
添加一个right click the project and click add => new item
and from there select web configuration file and name it web.config
在 web.config 文件中添加以下行
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
</system.webServer>
</configuration>