Hi All: I have VS2010 sp1 running on Win7Pro sp1 and IIS Express 7.5 installed. When debugging a project, I'm using IIS Express and letting VS pre-configure the website.
I have several dozen projects, each assigned a different IP port in the IIS applicationhost.config file.
One project doesn't run, however, and I get "page cannot be displayed" when I try to debug. VS2010 is setting the project URL to "http://localhost:63814".
I tried deleting and recreating the IIS config settings for the website, including manually deleting the site settings in IIS config. When I reopen VS2010, it warns me that the virtual directory doesn't exist, and when I recreate it, it creates it under port 63814 again. I tried manually changing the binding to a different port, and VS created a new site binding with the old port in the IIS applicationhost.config file.
Finally, I checked "override application root URL" in the project's "web" properties and set it to the other port "64005". When I debug the project, it still loads on port "63814", which doesn't work, but if I manually change the port in the browser (e.g. "http://localhost:64005"), it DOES work!
So, my question is two-fold...why can't the website run on port 63814 which VS is trying to set it to? When I view "IIS Express Running Applications" nothing is running on 63814. I also checked from the command line using "netstat -aon", and nothing is using port 63814.
Secondly, is their any way to override the port VS2010 is selecting? I was able to "override" the default port, but should the new port be used automatically when debugging?