I published my code to our IIS server and I am getting this error. From many recommendation that I read online, I installed Url rewrite but it does not seem to fix the issue. This error points to Web.Config and I don't see any problem with it as it was also auto-generated. Everything works when I test it in IIS Express on Visual Studio 2019. Any idea? see code below:
<?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="dotnet" arguments=".\forms.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
try installing DotNetCore.1.0.0-WindowsHosting.exe from this page: https://www.microsoft.com/net/download .
Specific link to download: https://go.microsoft.com/fwlink/?LinkId=817246
User contributions licensed under CC BY-SA 3.0