Windows10下IIS部署ASP.NET Core2.0遇HTTP Error500.19求助
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

