You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows10下IIS部署ASP.NET Core2.0遇HTTP Error500.19求助

Issue running ASP.NET Core 2.0 app on IIS (Windows 10)

I've set up IIS on my Windows 10 machine and I'm trying to publish an ASP.NET Core 2.0 project. Right now I'm only testing locally, but I have a VPN with a public IP ready for when I'm ready to go beyond localhost.

After installing IIS, I published my project and copied all the files to C:\inetpub\wwwroot\irelevant25. I created a new website pointing to this folder, but when I try to access it via localhost:5002, I get an error (screenshots attached).

I've already scoured Google for solutions and tried several fixes:

  • Adjusted folder permissions (screenshot attached)
  • Installed URL Rewrite
  • Enabled 32-bit applications for the app pool
  • Set "Load User Profile" to false

The default HTML test page runs perfectly fine, but the ASP.NET Core project keeps throwing errors. Even when I publish an unmodified, out-of-the-box ASP.NET Core 2.0 project generated directly by Visual Studio, I hit the same issue.

Here's my Web.config configuration:

<?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=".\irelevant25.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout">
    </aspNetCore>
  </system.webServer>
</configuration>

I'm stuck and could really use some help figuring out what's going wrong here. Any suggestions or solutions would be greatly appreciated!

内容的提问来源于stack exchange,提问作者Frantisek Pastorek

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 04:01:46