AggregateException Error in Blazor when deploying to Windows Server 2022 IIS 10 #59852
Replies: 2 comments 2 replies
-
|
We had the same error message, and this was the only match that was found by an internet search. Update: Well, sometimes it helps to tell it to a rubber duck - after having done so, I had the idea to look at one or two other things, and suddenly I found that the reason was a file exclusion in ther process of copying the result of "dotnet publish" to another location. Though it was all an error on our side, I will keep this post - maybe it helps someone else who has the same problem for other reasons Analysis 1: try{await cr.runMain(cr.getConfig().mainAssemblyName,[])}catch(e){console.error(e),Lo()}This does not help further, it is just the startup code of the Blazor WebAssembly. Analysis 2: Analysis 3: This "appsettings.json" file is not the one found in the root of the web app, but the one in the subdir "C:\inetpub\wwwroot\MyWebApp\wwwroot". Here and in its subdirs, several js or css files existed with ".br" and ".gz" alternatives, but no "appsettings.json.br". Workaround 1: Workaround 2: Workaround 3: <PropertyGroup>
<CompressionEnabled>false</CompressionEnabled>
</PropertyGroup>This will disable compression completely, so it might be bad for performance. |
Beta Was this translation helpful? Give feedback.
-
Issue with modifying
|
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description:
When deploying a Blazor project using .NET 9 (Auto Render) to a Windows Server 2022 IIS 10, I encountered the following error:
Environment:
Steps to Reproduce:
Expected Behavior:
The Blazor application should run without any errors.
Actual Behavior:
The application fails to load properly and throws the error mentioned above.
Questions:
Thank You!
Any help or guidance would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions