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 change the port on the project URL.
Related
I'm developing a site with .NET and C# in Visual Studio 2017. When I first load the project, I can press the green arrow IIS Express button and it opens a new browser window and everything is fine. However if I stop it or exit from the browser tab, the next time it doesn't load the page. It opens the browser window, but says it cannot connect, and the IIS Express button doesn't stay grey and goes back to white. This started happening only recently, and I've not made considerable changes to the codebase; I don't know why this is happening now.
All I have to do is exit Visual Studio and open it up again, then I can run IIS Express for one time before it stops working again.
I don't see any errors, I've tried running in Administrator mode, and I've assured that it's not trying to use a port that's already in use. I've also tried updating VS 2017.
Where do I start looking into this problem?
According to your description, I guess you may install some third-party extension in your visual stuido that casuing this issue.
I suggest you could try to run VS with safe mode to check if this is working well or not.
About how to run VS in safe mode, you could refe to below way:
open CMD and go to C:\Program Files (x86)\Microsoft Visual Studio\2019\version name\Common7\IDE folder, run the command: devenv /safemode
Besides, I suggest you could try to reset all the VS setting to defauly.
Details, you could refer to this article.
I'm using VS2017 and when I tried to run my app just standard noting extra with IIS express it fails.
Error:
An error occurred launching IIS Express. Unable to launch the configured visual studio development web server. Uncaught exception thrown by method called reflection.
I've set the port to 8080 instead of 56000.
Any ideas how what is wrong? Yes I installed IIS Express but it's not running in the background. I've tried to start VS in Administrtor mode but no luck. I've also deleted the .vs folder and restarted but again no luck.
According to this blog, the following steps should fix the issue:
close all Visual Studio instances
go to your ASP.NET project/solution folder, delete “.vs” hidden folder
click “Start”, search IISExpress, go to IISExpress folder, go upper level and delete whole IISExpress folder
start Visual Studio with Administrator privilege
create a fresh new ASP.NET project
run this project, this time you should see IIS Express is launched by Visual Studio correctly
close this solution but not close Visual Studio, open the ASP.NET project which you have problem with, and run it now, you should see IIS Express is launched correctly
My UWP app is building,rebuilding and deploying fine but it is not running.
Although, it works fine in other system.
I am using Visual Studio professional 2015 since 5 month to build this project and all of a sudden it has started showing this.
When i try to uninstall the app it doesn't give any option to uninstall also.
I have tried restarting the system and cleaning,rebuilding the project file but nothing seems to work.
Thanks in advance.
Causes:
It is a known issue in Visual Studio 2015.
For more info: unable to activate Windows Store app
Solution:
Update to Visual Studio 2017
For other solutions:
Unable to activate windows store app the app didn't start
Unable to activate Windows Store app: The App1.exe process started, but the activation request failed with error ‘The app didn’t start’
It seems like the directory or the folder were corrupted so that is why every time when i was running the application it was installing in a non packaged version therefore i was not getting the option to uninstall it properly.
I tried by deleting the whole folder which created in AppData folder of the Users but it didn't work.
So finally i created a new folder and moved my solution over there.And everything is working pretty much fine now.I thought we could solve this problem by repairing Visual Studio but since this issue is not related with Visual Studio and moreover it takes half of your day to repair Visual Studio so only moving the project to a newly created folder would be a good idea in this case.
I just changed to Visual Studio Community 2015 and I'm having a weird issue running a project. The project builds without any errors. But, when I go to start debugging I get the following error:
There is an error in web.config. Please correct before proceeding. (You might rename the current web.config and add a new one.)
This only happens if web.config is not open in the editor in Visual Studio. If I open web.config in Visual Studio and try to run the project, I am able to do so and no errors are reported.
Has anyone suggested that we close and reopen Visual Studio?
I had the same problem in a Web API project in VS Enterprise 2015. I knew there was nothing wrong with the Web.config file because, like you, all I had to do was to have it open before hitting F5. It went away after I removed and re-added the project to the solution during solution re-organizing. You might want to try that. No logics here but then the error seems illogical too.
I fixed/stopped the issue above and wanted to communicate what my fix was with the exact same symptoms as above. I had switched to a different published environment when this started happening (from UAT to Dev) and I commented out a section in the web.config file. Double checked to make sure I commented out the exact text. I even cleaned my solution and rebuilt it, same problem. Strangely, I could publish to the dev environment and the application would run (Web app with IIS 7).
The only difference between my local environment from when it was working and this problem was my web.config file. So I was thinking VS was having trouble accessing the file when not open in the IDE. I checked properties and the file had the appropriate settings. I then checked in the solution into our source code repository and the issue went away. We implement an SVN solution here.
Hope this helps.
I have set up a IIS site on localhost:94, and it runs as it should, I am using visual studio 2012, when I go to launch it this appears...
Anyone have any idea how to fix it?
It's working fine on the other developers computers.
Try running Visual Studio as an Administrator.