Search code examples
asp.netvisual-studioiis-expresserror-code

Visual studio: unable to compile aspx page as unable to start iisexpress


I'm new to visual studio so please help me out on this. I have search for similar questions but it didn't work or it is unanswered.

So I just created a .aspx page in visual studio 2017 and I wanted to compile it and show it on a web browser (I use chrome for it) but it gave an error:

Visual studio Error generated:

Unable to start iisexpress.

The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
For more information about the error, run iisexpress.exe with the tracing switch enabled (/trace:error).

So long story short, I went on to cmd to trace issexpress error and got this:

error I got from cmd:

C:\Program Files (x86)\IIS Express>iisexpress.exe /trace:error
Starting IIS Express ...

Initializing the W3 Server Started CTC = 19870296

W3 Server initializing WinSock.  CTC = 19870312

W3 Server WinSock initialized.  CTC = 19870312

W3 Server ThreadPool initialized (ipm has signalled).  CTC = 19870312

Start listenerChannel http:0

Error (rc=80070422) in UlInitialize. Exiting

Error initializing ULATQ.  hr = 80070422

Terminating W3_SERVER object

InitComplete event signalled

Process Model Shutdown called

Waiting for all LISTENER_CHANNELS to stop

There were people who said to uninstall and reinstall iisExpress, delete IISExpress folder in document and run IIS Express again. Those didn't work and many others were similar case but different error code.

Anyone knows how to solve this?

Oh and not sure if it's related, I have on my IIS with these checked: windows features, IIS checkbox


Solution

  • Please change the xamp port.Both Xamp and ASP.net working on the same port.If you change the xamp port, then it will work.please try and let me know.

    How to change XAMPP apache server port?