473,327 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

ASP.NET and Default web site

When I create a new asp.net project in Visual Studio it automatically
creates a new web in IIS with the name of the project.

How do I create asp.net pages that I want to run in my root (default) web
site on my server?

For example, I want:

http://mywebsevername/default.aspx

Not

http://mywebsevername/myVSprojectname/default.aspx

Nov 18 '05 #1
1 1237
In IIS set the root directory of your web site to the directory of your web application. It means that instead of [drive]:\inetpub\wwwroot, your root directory would be C:\MyWebSite for example. If you want to avoid writing the default.aspx after the name of the web server define that aspx file as the default document in your website.

That way you could access your web application by typing http://mywebservername

Hope this helps

Alan Ferrandiz Langley
ASP.NET Developer
geekswithblogs.com/aferrandiz
"Dave" <da*******@newsgroup.nospam> escribió en el mensaje news:Ok***************@tk2msftngp13.phx.gbl...
When I create a new asp.net project in Visual Studio it automatically
creates a new web in IIS with the name of the project.

How do I create asp.net pages that I want to run in my root (default) web
site on my server?

For example, I want:

http://mywebsevername/default.aspx

Not

http://mywebsevername/myVSprojectname/default.aspx


Nov 18 '05 #2

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

Similar topics

0
by: John Caruthers | last post by:
HELP! This problem is driving me crazy. All other web sites that are being served out through this server are working, including sites and virtual directories that are under the Default Web...
88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
1
by: Blue Ball | last post by:
I have setup the global.asax, so that everytime server encounters an error, I will be notified by email. Now, my web site is up and running. However, EVERY TIME I update the "default.aspx" by...
2
by: mike kim | last post by:
I am in the middle of developing a web application using asp.net. I have used IIS default web site for the development, creating a virtual directory and so. My laptop is also my webserver. ...
2
by: mike kim | last post by:
I have a web application running on IIS default web site with vitural directory and so. This is for the development site. Also, I have a production web application running on the same IIS but on...
0
by: Steve | last post by:
When the web site is not setup as the default then MapPath("virtname") returns the correct physical path for a virtual directory which has been setup. However, when the web site is setup as the...
0
by: Stephen F Zelonis | last post by:
I am building an ASP.Net site in Visual Studio. The site works fine when I deploy it onto a server, however, if we set the default document of the site to be the starting page and navigate to the...
5
by: gerry | last post by:
single machine - W2Kserver , IIS5 , VS.NET 2003 I spent some time struggling with what looked like the dreaded asp.net debugging configuration problem but none of the solutions for this did any...
2
by: Pranab | last post by:
On my local sandbox , in IIS I created some Websites . Now when I try to create a ASP.NET web application , it tries to create it in the website last created and fails . But my requirement is...
5
by: =?Utf-8?B?a25m?= | last post by:
I have a small application that initially loads two .net dlls and the app can run with .NET 1.1 or .NET 2.0. On 32-bit machines I am able to run these apps as a virtual directory under the Default...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.