Search code examples
blazor-server-sideiis-8windows-server-2019

.net 6 Blazor Server app - Not working after deployment


This is driving me crazy , I have an app that works local but when deployed to windows server 2019 I get the error that say

enter image description here

and when I inspect the browser console I get this

enter image description here

I get no errors in the windows event logs , I have installed .net 6 hosting bundle, when run the console app alone it does not have any errors.

Has anyone came across this?


Solution

  • So this ended up being an access issue. For whatever reason the exception was not being logged, and since the response was coming back as HTML it explains the "unexpected token" error in the browser console.

    So far , I really love blazor , but debugging is a little cumbersome.