Unable to open solution containing website due to port being less than 1024?
asp.net, visual-studio-2010
Solution
Figured out a solution a while ago, but forgot to post the answer here just in case someone else stumbled across this one day.
If you open the solution file containing the project, you need to remove any instance of 'localhost' where the website in question is referenced. This seems to do the trick.
My guess is VS sees the 'localhost' and assumes you're trying to actually open a site on the local machine, or bind it to that address. Which would explain the port error.
Problem
I recently had to remap my solution to a new directory, upon trying to reload the solution in visual studio 2010 I get the error message: "Cannot open Web Site 'http ://localhost/XXX'. You must run Visual Studio in the context of an administrator account to create IIS Express sites with ports less than 1024." This is strange because as far as I can tell, the port defined in the solution file is well above port 1024. And the only advice I can find requires that I open the solution in VS (funny little catch 22 right?). The solution worked before I remapped and re-downloaded the solution from TFS. This is in remote apps, so I don't have access to actually run VS as an administrator.