rperazzolli
rperazzolli

Reputation: 31

I can't execute a website using blazor webassembly published on IIS

I created a project with Blazor Webassembly using SignalR (VS 2019 - .Net Core 3.1). When I run it from the development environment it works correctly, but when I publish it to IIS (the server project) and I try to run it, it shows me the following message:

Loading... An unhandled error has occurred. Reload 🗙

The messages in the console are:

Failed to load resource: the server responded with a status of 404 (Not Found) bootstrap.min.css:1

Failed to load resource: the server responded with a status of 404 (Not Found) blazor.webassembly.js:1

Failed to load resource: the server responded with a status of 404 (Not Found) app.css:1

Failed to load resource: the server responded with a status of 404 (Not Found) bootstrap.min.css:1

Failed to load resource: the server responded with a status of 404 (Not Found) app.css:1

Upvotes: 3

Views: 4003

Answers (1)

Rick
Rick

Reputation: 1

I was having the same issue and the same resolution resolved it for me!

What I did was browse to the website where I hosted it, went into developer mode of the browser (F12), hovered over the error and looked at the path!

In my index.html file I had in the and just needed to remove the forward slash and it started working just fine!

Upvotes: 0

Related Questions