I suddenly can't debug anything in Visual Studio 2017 using IIS Express.
Symptoms
While debugging in VS2017, the output window shows the message below immediately.
The program '[13980] iisexpress.exe' has exited with code 0 (0x0).
Running IIS via Command Prompt:
"C:\Program Files (x86)\IIS Express\iisexpress.exe" /port:50896 /path:"C:\Users\XXXXXXX\Documents\Visual Studio 2017\Projects\BT\ManageOIC\EnterpriseMedicalReportTool\\" /trace:error
Error (rc=800703f1) in UlInitialize. Exiting
Error initializing ULATQ. hr = 800703f1
Copied template config file 'C:\Program Files (x86)\IIS Express\AppServer\applicationhost.config' to 'C:\Users\XXXXX~1\AppData\Local\Temp\iisexpress\applicationhost2018111183214194.config'
Updated configuration file 'C:\Users\XXXXX~1\AppData\Local\Temp\iisexpress\applicationhost2018111183214194.config' with given cmd line info.
Starting IIS Express ...
Initializing the W3 Server Started CTC = 3184968
W3 Server initializing WinSock. CTC = 3184968
W3 Server WinSock initialized. CTC = 3184968
W3 Server ThreadPool initialized (ipm has signalled). CTC = 3184968
Start listenerChannel http:0
Error (rc=800703f1) in UlInitialize. Exiting
Error initializing ULATQ. hr = 800703f1
Terminating W3_SERVER object
InitComplete event signalled
Process Model Shutdown called
Unable to start iisexpress.
The configuration registry database is corrupt.
For more information about the error, run iisexpress.exe with the tracing switch enabled**(/trace:error).
In the event viewer, the following error is noted:
The worker process for app pool 'IISExpressAppPool', PID='4504', failed to initialize the http.sys communication when asked to start processing http requests and therefore will be considered ill by W3SVC and terminated. The data field contains the error number.
Data field: 800703F1 - Err.exe suggests this may be a registry problem.
What I've Tried
Changing the port for IIS Express to several different open ports
Deleting the .vs folder in Visual Studio.
Running a different project.
Creating a new MVC web app and running it.
Reinstalling IIS Express via Microsoft Website. (And restarting after.)
Reinstalling IIS Express via Visual Studio Installer. (And restarting after.)
Repairing Visual Studio. (And restarting after.)
Manually running IIS from command line via command above on IIS 10.
Uninstalling IIS 10 and installing IIS 8
Manually running IIS from command line via command above on IIS 8.
Running sfc /scannow (No issues found)
Checked for recent Windows updates (none shown)
Updated visual studio
Related
When I try to run IIS EXPRESS in visual studio 2019 I get the following error message:
error message
And I try to move folder asp.net code, repair program, Uninstalls and install agian but I still get the following error message
Did you debug your application from IIS or IIS Express? If you are using IIS Express, I suggest you refer the link below:
IISExpress 8 Cannot read configuration file redirection.config.''
And it may also be related to your permissions, I recommend you to run VS as administrator.
Visual Studio Community 2019 16.10.0
Pressing [IIS Express] to debug...
Regardless of which Port I use, I get:
Log:
Failed to register URL "http://localhost:59001/" for site "...." application "/". Error description: The process cannot access the file because it is being used by another process. (0x80070020)
Rebooted, deleted 'vs' folder, reinstalled VS 2019. Still the same error. Does anyone know what could be causing it?
Choosing the "Repair" option on Visual Studio fixed it. But uninstall/reinstall did not?!?
I tried using IISExpress to launch my web projects in Visual Studio 2015. I have both a RESTful service project and a front end website. Neither one will launch and after drilling into the diagnostics in Internet Explorer I find the error message
The remote device or resource won't accept the connection.
I have tried resetting Internet Explorer and there is no proxy server that might be interfering with the connection.
A) Check to make sure that IISExpress is running. First, start your project in Visual Studio, then click the Start button and search for 'Resource Monitor'. Expand the 'Network' section and look for IISExpress. You could also use Ctrl-Alt-Delete and choose Task Manager to see whether IISExpress is running. If it's not there then there is a problem with IISExpress and it's not even running. In this case you can work around the issue by configuring the web project to run in IIS.
Make sure IIS is set up on the machine
How to enable IIS on Windows
Configure Visual Studio to use IIS to run the web project
Use Local IIS as a Web Server in Visual Studio
B) Check the version compatability of IISExpress with Visual Studio. IISExpress 10 does not work with VS 2017, for instance.
C) There are any number of reasons why IISExpress night not be starting
IISExpress Troubleshooting on Stackoverflow
When I want to debug my web project on local iis I get this error message. First I tried to debug an Umbraco project and I got the message below. First I thought it was because of Umbraco but a new empty web project gave the same error message.
Unable to start debugging on the web server. The Visual Studio 2017
Remote Debugger (MSVSMON.EXE) does not appear to be running on the
remote computer. The may be because a firewall is preventing
communication to the remote computer. Please see Help for assistance
on configuring remote debugging.
My configuration in Visual Studio 2017:
Local IIS
Project URL: http://my.domain.dev.nl
Virtual directory has been created successfully. Of course I tried some things before asking.
I tried to restart the Remote Debugging process.
I tried this command: devenv /resetuserdata.
I started a complete new project.
I changed debug CPU from any to x86 and x64 also.
If I choose for IIS Express I can run my project without any issues.
Someone any idea?
Edit:
Another thing to mention is that I have tried to ping the local address http://my.domain.dev.nl and I got a reply from another ip. Of course I checked my IIS bindings but everything is ok.
I am getting the error message "Unable to launch the IIS Express Web server" when trying to debug a web app in SafeMode. I am kicking off safemode with the devenv.exe /SafeMode switch and it loads my solution fine and it builds fine. But when I try and run the web app I get the aforementioned error message.
When I run VS normally (outside of SafeMode), all works as expected.
Just an FYI on why I am running in safe mode. There are times that I need to run my windows instance in a VM instead of booting into it. When this happens, trying to run VS (with all the plugins) is unbearable. So I just started using the SafeMode switch to disable all the plugins instead of turning them all off then having to turn them back on later. I did not think that turning off the plugins would make it so I could not kick off a sub process like IIS express...
Any suggestions. I am also very open to other ways to automate the launch of VS with/without plugins.
I am running Visual Studio 2013 Ultimate on Windows 8.1
Yes, currently there is a issue blocking debugging managed application under /safemode.
A possible workaround it to use "devenv.exe /rootsuffix", E.g. "devenv /rootsuffix LessPlugin". This way the Visual Studio will have no VSIX-based extensions. This won't be as clean as /safemode, but still faster if you have lots of your own VSIX installed. You may even install VSIX under the new root hive and still get it back the next time you start with the same /rootsuffix parameter.
This is the same command used to start Visual Studio if you have been writing VS extension with VSSDK. See here and here for more explanation on rootsuffix.