changing the asp.net development server port?

G

Guest

At my new job the asp.net development server port is 2204. So the only way
for me to test aspx pages is by typing "localhost:2204/myapp/default.aspx".
At my old job this port was not enabled and I could simply type
localhost/myapp/default.aspx. Is there a way to change this somewhere? Why
would this be configured this way?

Any help would be greatly appreciated.
 
G

Gabriel Magaña

You must be using a file-based web project... Those start the little web
server that always runs on a non-standard port (so as to not interfere with
IIS which runs on port 80). The port number that is used for this is now in
the solution file (because MS is absolutely sure that we hate project files
for web projects ;-) ). Back up your solution file, open the .sln file with
notepad, and look for an entry like "VWDPort = "3366"" which is where the
port number is configured.

You can change it, but VS will change it automatically again when there is
some sort of problem (ie, your VS2005 just crashed and the web server is
still running and taking up the port, so another port is automagically
assigned ad your VS solution file is auto-changed with the new port number
accordingly).
 
M

Mark Fitzpatrick

The port is a function of IIS. If the particular server is set to serve on a
port other than port 80, you have to append the port to the server or domain
name. Ask the admin to see if there is a specific reason it was set this way
(usually means that another web is being served on port 80 such as an
intranet or a live website). Hopefully they have a good reason. Other than
that, the only way to change this is by changing the port that the IIS
virtual server listens on.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top