Here is my setup of ACL list, IIS Express binding, Visual Studio Web setting...
But it doesn't work. What's the next thing to try?
I needed to add 127.0.0.1 bf to the OS' host file.
Related
MSDN says there should be an option in the Properties pane to change the port. There isn't.
How can you change the port of your local web server in Visual Studio 2015 community edition?
EDIT: I believe part of the problem may be that I'm doing a web site projet, not a web application project and those are different for how they allow you to access ports.
The bottom line is, I can't start up the server because something is using the same port.
The option doesn't exist in the enterprise edition either. It seems to be stored in
[My Documents]\Visual Studio 2015\Projects[Your Web Site Name].vs\config\applicationhost.config
You should search for the current port number and replace it.
Bases on #levininja's comment, I managed to solve the error by following the below instructions:
Open visual studio solution file *.sln in your project folder and look for:
VWDPort = "54638"
The default port number may be different than mine. In my case it is 54638.
Change the port to the port number you want.
There are a million and one google hits explaining how to disable the ping timeout in IIS (which annoyingly interrupts debugging), which all give this information:
https://msdn.microsoft.com/en-us/library/bb763108.aspx
But how do we do this on IIS Express?
(There does not seem to be a configuration interface for IIS Express)
IIS Express does not honor application pool settings except ASP.NET version. So even if you change this setting in config file it won't take effect. That's probably why nobody talks about it.
Meanwhile, if you want a configuration interface similar to IIS Manager, here comes Jexus Manager,
http://jexusmanager.com
you need to modify the applicationHost.config for your instance of IIS Express.
Clicking on the IISExpress Icon will help you find the config file. For my personal dev/test I use
If you are using the Azure Compute Emulator, the applicationHost.config will change with each local deployment. For that you will need to modify C:\Program Files\IIS Express\config\templates\PersonalWebServer\applicationHost.config.
That file will be copied on each deployment.
Good luck.
I want to change the TFS Ports of my TFS clients without re-creating the workspace. Is that possible?
Reason: I'm using a NAT on TFS server gateway and my network admin changed the router, which uses - and blocks - the port 8080, which I was using.
If so, how is that possible?
I'm using Visual Studio 2010 pointed to TFS 2010.
You can change the port in IIS like you would any website.
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 properties window for my Web Application, checked the 'Use IIS Express' checkbox, created the Virtual Directory when it has prompted me, but then get the message "Unable to launch the IIS Express Web Server. Port x is in use".
I have tried changing the port number from the default value that was in there, to numerous other port numbers, but whatever value is there, I am always getting this message, and am therefore unable to use the IIS Express Web Server.
Does anyone know what the problem might be, and how to get around it?
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
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.
Remove IISExpress directory located under 'My documents' folder
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)
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.
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.
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.
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 ... :)
go to solution explorer, right click on the present Application then go to properties, now click on web scroll the mouse and change the port no. from project localhost:1257
NOW RUN IT...
In my ASP.NET MVC Application project, I set the option "Specific port" and set it to 80, but the VS 2010 always chooses a differnt random port number of me.
What do I do to make it keep the port I selected?
See this thread Fabio:
Visual Studio 2010 debug in a fixed port
The solution for this particular problem was using a different port. I managed to use the 80 port through IIS, but that was another option.