Localhost vs machine name

M

Mark Rae

Hi,

In ASP.NET v1.x it was possible to specify on a project by project basis
that the site would load as the machine name instead of localhost when
running within Visual Studio.NET e.g. you hit F5 and the site loads as

http://myDevMachine/myTestSite

instead of

http://localhost/myTestSite

This was particularly useful when using SSL certificates generated with
SelfSSL for testing secure sites etc.

Is this possible in ASP.NET 2?

Mark
 
S

Scott Allen

You can set a different URL for debugging:

Right click the project - select "Property Pages"
Go To "Start Options"

Change the start option to an URL.
 
M

Mark Rae

You can set a different URL for debugging:

Right click the project - select "Property Pages"
Go To "Start Options"

Change the start option to an URL.

D'oh! I really ought to have been able to figure that one out for myself!
Thanks... :)
 
M

Mark Rae

You can set a different URL for debugging:

Right click the project - select "Property Pages"
Go To "Start Options"

Change the start option to an URL.

I did that, and the site no longer jumps into debug mode i.e. I press F5 and
the site launches directly, even though I have a breakpoint in the
Session_Start code. If I reset it to start with 'default.aspx' instead of
"http://myDevMachine/mySite/default.aspx", it jumps into debug mode as
normal...
 

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

Top