I created a Blazor application and it runs in IIS Express in Visual Studio.
Then I created a website on the Windows IIS and publish the files to the IIS folder. However, the browser shows:
The following is the generated 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=".\BlazorApp1.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: e03d13a0-86b1-4f57-adee-8d1aeda34ab8-->
I read other questions and have installed UrlRewrite2.1 on my PC.
Update:
After install dotnet-hosting-3.0.1-win.exe, now it gets 500 error.
User contributions licensed under CC BY-SA 3.0