Built a default Net Core 2 app w/no authorization and successfully web-deployed via VS2017 Publish to remote IIS instance under Win 7. However, the app fails to run, generating an HTTP 500 error.
Log file shows a 500.19 error:
Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken 2018-03-29 20:42:20 ::1 GET / - 81 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko 500 19 5 296
After researching, there seems to be a myriad of options for setting up to run under IIS. I first tried MS recommendations, which resulted in above error.
Here is web.config:
<?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=".\WebApplication1.dll"
stdoutLogEnabled="true"
stdoutLogFile=".\logs\stdout" />
</system.webServer>
</configuration>
Here is IIS site configuration:
IIS add-ins:
MS Web Platform Installer
Net Core Server Hosting
Web Deploy
MS .NET Core 2.0.6 Windows Server Hosting
Questions:
- should a default app work as is when published to IIS?
- If not, what is necessary?
Event Viewer
) was there anything interesting there? – mjwills