1

Apologies about the long message, but I thought I should let you know what I have already tried

I've very recently started learning C# through Visual Studio and all was going OK until about three weeks ago. I clicked on the button with a green triangle which did the usual thing of launching the internet page, but the site never loads. I then noticed there was an ISS Express notification which brings up the following (can't figure out how to get my cropped screen shot on here):

'The Specified port is in use Port 49665 is already being used by process "svchost.exe" (process ID "2112") Recommendations 1. Try switching to port other than "49665" and higher than 1024 2. Stop the application that is using port "49665"'

I have managed to locate the svchost.exe on my computer and it is in the system 32 folder. There doesn't appear to be an option to stop it, and I am worried deleting it will break my operating system (I did click delete to see what happens and got an error saying I need permission from trusted installer to do this, but didn't go any further). When I open task manager and look through all tasks, including 'background tasks' and 'windows processes' and can't see it anywhere

I have tried to follow the advice in this discussion: IIS Express Web Server Port Is In Use

But I cannot fully understand where the solution was- I don't think I have anything called ISS installed, however there is a Local ISS when I go to 'file', 'open website', which I found through the following: Why and how to fix? IIS Express "The specified port is in use"

I did as the answer marked 21 (with the green tick) suggested and restarted my computer (as one of the comments suggested) however my problem persists. There is no longer anything under 'IIS Express Sites'

I have closed all browsers then tried, restarted and then tried, still no luck The third answer (7) I really don’t know how to do this (I don’t know what solution they are referring to), so if this is a potential solution I’d be happy for further instructions

The answer marked with a 5 about netstat -aob helped me locate a task called ‘service host: local service (network restricted) (6)’. Trying to terminate this task brings up an error saying that by terminating this task Windows will become unusable- so I assume this is why I couldn’t delete the above. The final part of this answer about elevated access I don’t know what this means or how I would do this.

Closing visual studio and restarting as an administrator doesn’t fix the problem I only have Edge and Internet Explorer and I have ended these via task manager whenever I have tried to resolve this problem, but it persists I tried the answer at the bottom, but was not able to locate the folder IISExpress, maybe this is part of the problem?

Any suggestions where I might be going wrong with the above, or any further advice on how to progress some of the things above, or any new ideas will be welcome

Thank you for your time, any advice will be appreciated

Ed

Community
  • 1
  • 1
user7327273
  • 41
  • 1
  • 5
  • I had this issue before and had to change the port in the project as well as create a new virtual directory.. have you tried doing that – MethodMan Dec 21 '16 at 21:14

1 Answers1

0

Thanks for the suggestion Methodman. After much digging I found the solution you suggested here (change the port): How can i change IIS Express port for a site

The answer provided provides excellent instructions with a step by step guide on how to change the port

Just changed the port number until I got one that worked :)

Ed

Community
  • 1
  • 1
user7327273
  • 41
  • 1
  • 5