Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / January 2006

Tip: Looking for answers? Try searching our database.

changing the asp.net development server port?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ASP Developer - 19 Jan 2006 01:46 GMT
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.
Gabriel Magaña - 19 Jan 2006 01:59 GMT
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).

> At my new job the asp.net development server port is 2204.  So the only
> way
[quoted text clipped - 6 lines]
>
> Any help would be greatly appreciated.
Mark Fitzpatrick - 19 Jan 2006 03:11 GMT
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

> At my new job the asp.net development server port is 2204.  So the only
> way
[quoted text clipped - 6 lines]
>
> Any help would be greatly appreciated.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.