473,508 Members | 2,441 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Localhost vs machine name

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
Dec 4 '05 #1
5 3395
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.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sun, 4 Dec 2005 19:44:11 -0000, "Mark Rae"
<ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote:
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


Dec 4 '05 #2
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:c0********************************@4ax.com...
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... :-)
Dec 4 '05 #3
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:c0********************************@4ax.com...
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...
Dec 5 '05 #4
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:OC****************@TK2MSFTNGP14.phx.gbl...
I did that, and the site no longer jumps into debug mode


Ignore me - it was late...

Thanks, Scott - works perfectly.
Dec 5 '05 #5
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:OC****************@TK2MSFTNGP14.phx.gbl...
Thanks, Scott - works perfectly.


Great!

--
Scott
http://www.OdeToCode.com/blogs/scott/
Dec 5 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6880
by: Dale | last post by:
I'm (trying) to help a friend setup a MySQL db and use some simple scripts on a site hosted with GoDaddy. I note that GoDaddy appears to use Microsoft. I have done this: $connection =...
7
1858
by: Christoph Lutz | last post by:
Hi, I have got a scenario where an asp script needs to request via xmlhttp a file sitting on the same server. The code all works find on my local machine. However, on the hosting server, it does...
5
2109
by: Chris | last post by:
What is going on here... I have my site running locally on my machine, and when I don't have an internet connection (like when Im on the train) I get this error when I try to open an asp.net...
1
4673
by: L Scott | last post by:
I am wanting to get the machine name that is running IIS. I have code in the 'Application_BeginRequest' event of the Global.asax and even if I access the web site from another machine I am always...
4
3572
by: Greg Cyrus | last post by:
Hi, in a Page_Load I use: Response.Redirect("http://localhost/WebApplication3/frmDefault.aspx") Now the IExplorer shows "http://localhost/WebApplication3/frmKopf.aspx" in the adress-field....
1
1220
by: Tim | last post by:
I have an asp.net application that generates dynamic images (charts). When I run the application in debug mode from visual studio, or refer to the url with localhost in the name, everything works...
2
1901
by: Jennyfer J Barco | last post by:
Hello I have a project in .NET, when I open the internet explorer and write "localhost/projectname/default.aspx" it will open my page and do everything. But if I try to run using...
1
1622
by: MW de Jager | last post by:
Hi I'm trying to connect to a database on my machine from an ASP.NET appliaction. The connection string currently contains my machines name on the LAN in stead of "localhost". If I change the...
3
1590
by: Robin Tucker | last post by:
Should I consider this to work in other locales? If theServer.Name <> "(local)" and theServer.Name <> "(localhost)" Then ' Can only use local machine in this version..... End If
3
2342
by: maciek kanski | last post by:
Hello I have running WCF service (config below) hosting in just console application - because I've used InstanceContextMode.Single and ConcurrencyMode.Multiple and no Throttling I expect that 10...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.