On two different servers, I have deployed a Blazor Server App using .NET 6.0 and everything ran without an issue. Then I had an update - a different update for each server - and I started to get a 403.14 Forbidden error.
I did some digging and was led to attempt to copy the web.config that VS 2021 created on my computer during debug and then to include that in the main folder of my deployed app. When I do that, I get a HTTP Error 500.0 - ASP.NET Core IIS hosting failure (in-process) error. I tried the steps I found in this question - HTTP Error 500.0 - ASP.NET Core IIS hosting failure (in-process) in Dot net core 3.1 - but that did not resolve anything.
I ensured that the server app is running the correct App Pool, I bounced the box - nothing is working. I even spun up a new server, deployed the app and it ran fine - until I pushed out the exact same code again and then I got the errors above. I redeployed the .NET 6 hosting package, separately re-installed just the .NET 6.0 runtime. I am completely stuck.
Has anybody had this issue?
Here is my 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=".\vBear-Frontend.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>