Failed to start IIS Express web server - VS 2015 community

I am developing a web project and I cannot test it using IIS Express with Visual Studio 2015.

I have an error in this error and I found a lot of links to it on the Internet, but I believe that my case is different from the others, because there is no other error message other than "Unable to start the IIS Express web server."

I looked at the Windows Event Viewer and received the following errors:

The worker process failed to initialize correctly and therefore could not be started. The data is the error. The Module DLL C:\Program Files (x86)\IIS Express\aspnetcore.dll failed to load. The data is the error. 

I also tried running IIS Express directly using: c:\Program Files (x86)\IIS Express>iisexpress.exe /trace:error , and I was successful, so I think the problem should be somewhere in Visual Studio and that my port (8080) is free.

Does anyone know what else I can do?

+5
source share
2 answers

If you are working with the main .NET / ASP.NET core, then make sure you install them -

  • .NET Core SDK

  • Preview tool VS 2015 2

If it turned out to be specific to a solution, then -

  • Locate applicationhost.config file in <solution-name>\.vs\config\applicationhost.config location

  • Try to delete this file and run the solution again.

See if that helps.

+14
source

I had the same error a few days ago. I tried many things, but I think Repairing DotNetCore.1.0.0-VS2015Tools.Preview2.exe fixed the problem.

Also check if you can run the web application on the Kestrel web server. If you can run, then it is worth checking the web.config file for the presence of the aspnetCoreModule tag.

This link may be useful - https://github.com/aspnet/Home/issues/1583

0
source

Source: https://habr.com/ru/post/1257653/


All Articles