localhost URL changes in asp.net 2.0

M

moondaddy

I'm building an asp.net 2.0 app (and I also have .net 3.0 installed so I
don't know if that effects anything here). anyway, I haven't worked in
asp.net for a long time and now I notice that the url to the local web app
looks something like this:

http://localhost:3852/Default.aspx

however, yesterday the url to the exact same page was this:

http://localhost:2100/Default.aspx

and as I recall, in .net 1.1 it would normally be like this:

http://localhost/MyWebAppName/Default.aspx


Can anyone please explain what's going on here?

Thanks.
 
J

Juan T. Llibre

re:
http://localhost:3852/Default.aspx
however, yesterday the url to the exact same page was this:
http://localhost:2100/Default.aspx

If you are using the ASP.NET Development Server that's normal.

You can also configure VS 2005 to only use IIS.

To specify the Web server for an already-created Web site, open your local website
with VS 2005 and, in the Solution Explorer, right-click the name of the Web site for
which you want to specify a Web server, and then click Property Pages.

In the Property Pages dialog box, click the Start Options tab.
Under Server, click Use custom server.

In the Base URL box, type the URL that VS 2005 should start when running the current Web site.
You can use localhost, or you can use a dns domain name address if you have one.

From that point on, the VS 2005 IDE will not use the internal web server,
but will use IIS to open your pages, i.e., if you are working on default.aspx,
it will be opened as : http://localhost/default.aspx or as http://yourdomain.com/default.aspx
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top