Venkat
Venkat

Reputation: 2186

dotnet.timezones.blat returns 404 - file exists - blazor deployment

I am using visual studio 2022, wasm + hosted site project, the default boiler plate. I am publishing it to iis server and i get the following error.

enter image description here

I am clueless as why such an error is occuring. I can see the file doenet.timezones.blat in the framework folder but unable to browse in the browser. I get

enter image description here

Has some one hosted the blazor application in the IIS server manually? I am banging my head with this error and I could not get past it. Kindly help

Upvotes: 4

Views: 1442

Answers (1)

Venkat
Venkat

Reputation: 2186

After a lot of trying, I found that .blat and .dat extensions were missing in the MIME types so I did the following:

Open the IIS Manager, Click on the machine name(root dir) Right side click on MIME type and add the following values

enter image description here

enter image description here

and voila ! the error disappeared. I really sweated it out, i dont want others to suffer the same frustration i went through!

Upvotes: 10

Related Questions