Dalamar
Dalamar

Reputation: 117

Publish a .Net 5.0 web in IIS from Visual Studio 2019 doesn't start

I am trying to publish a test website in .Net 5.0 on an IIS on Windows 10.

From Visual Studio when Publish I selected:

My Windows version is 1909 (OS compilation 18363.1256)

If I navigate to the path http://localhost:8090/ I get this error "HTTP Error 500.32 - Failed to load .NET Core host.

I have reset the IIS, I have deleted and recreated the application, I have restarted Windows, but it still does not start the test web.

The Windows event viewer showed me these errors:

I don't know what else to look at. Any ideas or suggestions?

enter image description here

enter image description here

Upvotes: 6

Views: 13388

Answers (2)

akbar
akbar

Reputation: 773

I solve this problem in this way for myself:

In web.config I remove hostingModel="inprocess"

I answer for others who encounter this problem

Upvotes: 1

samwu
samwu

Reputation: 5215

Your errors are in ASP.NET Core, For these errors, you can try the following solutions:

  • Have you install asp.net core module? if not, please install it: ASP.NET Core Module
  • Open IIS manager > Application Pool > Select App pool > Advanced Settings, update "Enable 32 bits applications" from false to true > Click OK.

enter image description here

  • Try to delete the applicationhost.config (in .vs\config\applicationHost.config) and rebuild app.

Upvotes: 13

Related Questions