i have a problem deploying Blazor in IIS 10 (Windows 2019 Server, Version 1809).
What i did:
create a Blazor Project in Visual Studio (i used the default project, so i don't expect any programming issues here). It runs in VS (IIS Express). I used "Blazor WebAssembly App" (not "Blazor-Server-App") and i checked ASP.NET Core hosted.
i published the app to a folder. It contains lots of dll's, especially the "test.Client.dll", "test.Server.dll", "test.Shared.dll" and "web.config". It also contains 2 folders: BlazorDebugProxy and "wwwroot".
in IIS, i added the folder as an application.
What happens is: i get a HTTP Error 500.19 with error code 0x8007000d, which means that IIS can't read the "web.config".
I did not make any changes to the "web.config", it comes directly from Visual Studio, so i don't think it is a problem with the xml.
Here is what i already tried:
- install URL Rewrite 2
- give IIS_IUSRS the rights to the folder
- add roles and features in the server: .NET 4.7, ASP.NET 4.7, HTTP Redirection, WebDAV
Does anybody have an idea what to do next?
I also wonder, if there is a way to find out, what bothers IIS exactly. The logfiles under C:\inetpub\logs\LogFiles\ seem to only log the HTTP requests and in Windows cmd -> "eventvwr" it does not show the error either.
Thanks a lot, Tim