IIS Express Web Server - (Every) Port is in Use?

前端 未结 7 1266
-上瘾入骨i
-上瘾入骨i 2021-02-05 10:12

Today I installed VS2010 SP1 Beta, and IIS 7 Express, as I currently have IIS5 on my local development machine and thought I\'d try IIS Express out.

I have gone into the

相关标签:
7条回答
  • 2021-02-05 10:36

    If any body still facing the same issue ... even after trying all the above steps try the following simple steps...

    1) close all other applications

    2) Download TcpView application from

    http://technet.microsoft.com/en-gb/sysinternals/bb897437.aspx

    3) run the application, check the localport column and see who is using that specific port and end that task

    That will solve your problem ... :)

    0 讨论(0)
  • 2021-02-05 10:42

    I had a similar problem. It seems that if IIS Express is already running a particular site and then you try to run a project that uses that site through Visual Studio it isn't able to attach the debugger. The solution was to close any running instances of IIS Express and WebMatrix and then try running the site through Visual Studio (F5).

    I recommend installing WebMatrix as it's the simplest way of managing the sites and port numbers that you are using.

    0 讨论(0)
  • 2021-02-05 10:46

    1- Close Visual Studio.

    2- Delete IIS Express folder in Documents or edit applicationhost.config:

    <bindings>
      <binding protocol="http" bindingInformation=":8080:localhost" />
    </bindings>
    

    3- Delete solution file.

    4- Start Visual Studio and use open website.

    5- Choose your website folder.

    0 讨论(0)
  • 2021-02-05 10:52

    I have the same problem in the visual studio 2012.

    I am creating a sharepoint app for the SharePoint 2013 and it happened after some days means it was working before then I got the error:

    " Unable to Launch IIS web Server " "port 62308 in use.

    To fix this I just went to the settings of the web project by right clicking on the project node in in right panel under the project solution tab. Change the port number and configure the virtual directory and it worked for me.

    Hope it work for anyone else in case he/she has any problem.

    0 讨论(0)
  • 2021-02-05 10:58

    If you are using ESET NOD32 Anti Virus, you need to change the setting of "Web access protection" => HTTP, HTTPS => Web browsers => red cross the check box of your devnev.exe (This is three state checkboxs, click the check box until red cross appeared)

    I have just installed VS 2010 SP1, using the above setting to tell NOD32 to leave 'IIS Express' alone.

    Reference: http://weblogs.asp.net/anasghanem/archive/2009/02/01/nod32-antivirus-is-blocking-visual-studio-built-in-development-server.aspx

    0 讨论(0)
  • 2021-02-05 11:00

    What version OS are you using? Are you able to start IIS Express from command line? Could you try the following and post the error message you are seeing.

    1. Remove IISExpress directory located under 'My documents' folder

    2. Go to IIS Express installation folder '%programfiles%\IIS Express' (on 64-bit machine '%programfiles(x86)\IIS Express') and try to start iisexpress.exe from command line (without passing any arguments)

    0 讨论(0)
提交回复
热议问题