Hi
This is my first blazor deployment. I am using the standard 'hello world' blazor app created by vs 2019 (not https enabled). I have not made any changes to the default app except setting configuration to x86 debug. App works fine within vs 2019 with IIS Express.
The server is a Windows Server 2012 R2 and has the following;
- WebSockets enabled on IIS.
- url rewrite 2.1 extension installed.
- Latest releases of 3.1 Core hosting bundle (3.1.11) and x86 SDK (3.1.405) packages installed.
I have configured the IIS site and published the project to the relevant site folder. When I browse the site using the domain http://myapp.mydomain.com I get the error page below at the end. I looked up error 0x8007000d and it seems to suggest there is an issue with the web.config file. My web.config file is as below which is created by the vs 2019 by default.
<?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=".\BlazorApp1.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: 86c5f0a6-4ea7-49fa-8d68-18952a2fb9b3-->
What am I doing wrong and how can I get the blazor app to run?
Thanks
Regards
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x8007000d
Config Error
Config File \\?\E:\myapp\web.config
Requested URL http://myapp.mydomain.com:80/
Physical Path
Logon Method Not yet determined
Logon User Not yet determined
Config Source:
-1:
0: