Blazor WebAssembly on IIS 8 - 0x8007000d

1

I am following this guide in order to host my Blazor WebAssembly project: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/blazor/webassembly?view=aspnetcore-3.1#rewrite-urls-for-correct-routing

I have installed the URL Rewrite module 2.1 but I still receive this error:

HTTP Error 500.19 - Internal Server Error
Error Code: 0x8007000d
Config File \\?\C:\MyProject\web.config 

I am pointing the Physical path to one step above wwwroot, i.e the root folder of my project after publish.

My web.config in root folder looks like this:

<?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=".\MyProject.Server.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    </system.webServer>
  </location>
</configuration>

What am I missing? I have .NET Core 3.1.202 installed. My project is built upon the default template. Meaning an ASP.NET Core hosted Server part and WebAssembly-powered Client part. I am using port 81 for the IIS site.

Appreciate any guidance

asp.net
iis
.net-core
url-rewriting
blazor
asked on Stack Overflow May 13, 2020 by ArturM

1 Answer

1

User contributions licensed under CC BY-SA 3.0