【发布时间】:2020-04-12 10:48:01
【问题描述】:
这是我第一次启动 ISS Windows Server 2016 和 ASP.NET 应用程序。
关于运行此应用需要做什么的任何线索?
这是我的web.config 文件:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath=".\Groliapp.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: 06d4355d-1388-4f21-88d8-c0b4afb3c673-->
【问题讨论】:
-
这个错误可能是一个红鲱鱼。当您的 web.config 文件没有问题时,您经常会看到它。检查以确保您已安装 .net-core。通常你认为 .net 就足够了,但你需要专门下载/安装 .net-core。
-
@pcalkins 你是我的英雄!谢谢!有效!现在我只需要调试程序以使数据库连接正常工作。
标签: asp.net asp.net-mvc iis web-config config