简体   繁体   中英

Error running IIS-Express in Visual Studio

I have an API in Visual Studio and when I run it in IIS Express, it worked fine.

Today I did the same thing but it's not working. I believe that my IP address is correct so I don't think the issue is there, I'm also running it as administrator. I even went to the event view and it says that

The worker process failed to initialize correctly

and therefore could not be started. I'll show u the images below if anyone had this problem or knows how to fix it please tell me.

I've also tried to reinstall Visual Studio but its still not working

error in event viewr1

error in event viewer2

error in Visual Studio when I try to run the app

i've tried to repair the IIS Express and this is what pops up Repair Error

If it helps I'm using Visual Studio 2019

I had a similar issue but with a web service, I simply changed the port the web app was using. Right click the solution in the Solution Explorer tab, click properties then Move to Web and I changed the port on the project URL. Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM