Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 14th, 2004, 05:07 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default VS.NET / IIS Default page

I wish the default page of IIS to be a aspx page in the default web site directory.
I am unsure how to set this up.

Basically I want to replace the iisstart.asp page with a page that will redirect to one of a number of virtual directories within the default site based on the http_host address.

I have done this in classic asp in the past with good results but can not seem to get VS.NET to create a project at that default site level.

Can anyone inform me if what i wish is possible at all and if so how to go about it.

======================================
They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
__________________
======================================
"They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad."
--Shakespeare
======================================
 
Old June 14th, 2004, 05:40 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Rod,

You *can* create a project at the root level of a site. Create a new ASP.NET Web app, and when asked for the location, type in http://ServerName or http://localhost. Make sure you're not using an ending slash.
Next, you get to choose the physical files dir. Make sure that the folder you select maps to http://ServerName (so IIS must be using the same folder) and everything should work fine.

Finally, you should change the default document in IIS, but that's no different than it was in classic asp.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old June 14th, 2004, 06:03 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Imar,

You are a true legend.
Thanks again for your valuable assistance.
I now see how silly my question was, but when learning new things I hesitate before ammending the defaults given by VS.NET.
Thanks again.

Rod

======================================
They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
 
Old June 14th, 2004, 06:10 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

No need to feel silly. I have seen this question quite a lot of times, and I must say it's hard to figure out at first.
I found it out the hard way..... I am used to typing an ending slash after a domain name. So, I always type http://p2p.wrox.com/ for example.
In VS.NET, as soon as you type the /, the OK button becomes disabled, so for a long time, I thought you couldn't create applications in the root ;)

Cheers,

Imar





Similar Threads
Thread Thread Starter Forum Replies Last Post
redirect to page other than default page sarah lee ASP.NET 1.0 and 1.1 Basics 3 December 15th, 2006 05:45 PM
Change the IIS Web Site Default Directory using C# DudeBori82 C# 0 May 23rd, 2005 08:51 AM
Running exe from iis asp.net page [email protected] Classic ASP Components 2 February 21st, 2005 10:41 PM
Config of default smtp web server on IIS 5.0 kumarop Classic ASP Components 0 February 20th, 2005 04:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.