473,941 Members | 7,954 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I create a Web Application at the domain root?

Whenever I want to create a C# / asp.net based web site, Visual Studio
always requires a subdirectory for the project. So when I make my site,
for example abcinc.com, the web site ends up at
http://www.abcinc.com/abcinc/ or some other subdirectory. How can I
just setup a project for http//www.abcinc.com/ ?

Thank you! This is driving me nvts!


<img src="http://www.sen.us/mirror/SENLogo_62_31.j pg">
Meet people for friendship, contacts,
or romance using free instant messaging software! See a picture you
like? Click once for a private conversation with that person!
http://www.sen.us

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #1
12 2215

David -

That drove me nuts as well.

I figured out a solution, which I will describe below. However, there is a
limitation.

If you are using anything other than Windows 2000 Server, then you have a
problem in that the OS doesn't allow you to create multiple websites on your
computer. Thus, you can't create www.abcinc.com as a new website, because
there is already a default website.

In that case, you can either accept the fact that you can only develop one
website at a time, or you can go through some pains to fool Windows into
letting you create multiple websites.
To solve your problem, you should create the website manually using the IIS
control program (i.e. through the MMC)

Then, add an entry to your HOSTS file that looks like this:
127.0.0.1 www.abcinc.com

Now you can create the solution in Visual Studio .NET, and when it asks you
for the URL, just point it to www.abcinc.com


"David Berman" <da**********@b ose.com> wrote in message
news:eS******** ******@tk2msftn gp13.phx.gbl...
Whenever I want to create a C# / asp.net based web site, Visual Studio
always requires a subdirectory for the project. So when I make my site,
for example abcinc.com, the web site ends up at
http://www.abcinc.com/abcinc/ or some other subdirectory. How can I
just setup a project for http//www.abcinc.com/ ?

Thank you! This is driving me nvts!


<img src="http://www.sen.us/mirror/SENLogo_62_31.j pg">
Meet people for friendship, contacts,
or romance using free instant messaging software! See a picture you
like? Click once for a private conversation with that person!
http://www.sen.us

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #2
I just develop the app in the subdirectory, then copy it into the root
directory when I'm done.

"David Berman" <da**********@b ose.com> wrote in message
news:eS******** ******@tk2msftn gp13.phx.gbl...
Whenever I want to create a C# / asp.net based web site, Visual Studio
always requires a subdirectory for the project. So when I make my site,
for example abcinc.com, the web site ends up at
http://www.abcinc.com/abcinc/ or some other subdirectory. How can I
just setup a project for http//www.abcinc.com/ ?

Thank you! This is driving me nvts!


<img src="http://www.sen.us/mirror/SENLogo_62_31.j pg">
Meet people for friendship, contacts,
or romance using free instant messaging software! See a picture you
like? Click once for a private conversation with that person!
http://www.sen.us

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #3
Thank you for your response, but that's not really what I meant. I am
running windows 2000 server and I can setup multiple web sites. The
problem I'm having is that when I try to create a project with Visual
Studio, it asks for a url, and the url it requires you to enter must
have a subdirectory. I can't say, create a new web project at
http://www.abcinc.com, I have to specify /something at the end. How do
I create a web application with asp.net in the root directory?

Thanks,
David

<img src="http://www.sen.us/mirror/SENLogo_62_31.j pg">
Meet people for friendship, contacts,
or romance using free instant messaging software! See a picture you
like? Click once for a private conversation with that person!
http://www.sen.us

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4
"David Berman" <da**********@b ose.com> wrote in message
news:e3******** ******@tk2msftn gp13.phx.gbl...
Thank you for your response, but that's not really what I meant. I am
running windows 2000 server and I can setup multiple web sites. The
problem I'm having is that when I try to create a project with Visual
Studio, it asks for a url, and the url it requires you to enter must
have a subdirectory. I can't say, create a new web project at
http://www.abcinc.com, I have to specify /something at the end. How do
I create a web application with asp.net in the root directory?


You don't. Not really.

VS.NET assumes you're creating applications under the root. Support for
creating and working with applications at the root is spotty at best and in
my opinion should be avoided. Hopefully they'll fix this for version 2.
--
John
Nov 17 '05 #5
"David Berman" <da**********@b ose.com> wrote...
Whenever I want to create a C# / asp.net based web site, Visual Studio
always requires a subdirectory for the project.


David... I'm not trying to aggravate you but maybe there is an advantage to
this? I'm not certain I see the harm in keeping the root clear of as much
nonsense as possible. Among other things it (seemingly) would permit you
post "test" versions in other folders and to switch those to "live" when it
was determined to work.

Can you post an example of what the downside is?

Tom
Nov 17 '05 #6
I create a new website in IIS on my production server, give it its own IP
address, then copy the file over into that directory. so it's still in
c:\inetpub\wwwr oot\sitename, but you still go to it by pointing to
www.sitename.com, if your dns is set up to correctly point www.sitename.com
to the IP address you specified.

There's no need to stick everything in the root to accomplish this
"Tom Leylan" <ge*@iamtiredof spam.com> wrote in message
news:0d******** ************@tw ister.nyc.rr.co m...
"David Berman" <da**********@b ose.com> wrote...
Whenever I want to create a C# / asp.net based web site, Visual Studio
always requires a subdirectory for the project.
David... I'm not trying to aggravate you but maybe there is an advantage

to this? I'm not certain I see the harm in keeping the root clear of as much
nonsense as possible. Among other things it (seemingly) would permit you
post "test" versions in other folders and to switch those to "live" when it was determined to work.

Can you post an example of what the downside is?

Tom

Nov 17 '05 #7

Thank you everyone for your responses.

I don't want to put everything in my asp.net project in the root, but
maybe I want my web.config in there and my default.aspx in there to
start my application. I want to make a site who's sole purpose is to
provide one application. I tried developing in a subdirectory and then
copying it that that seems like an unnecessary step for me because I'm
not opening up the site to the public until its finished, so I would
like to develop to the root for some things. For example, you go to the
home page and there is a logon box on it and maybe some announcements.
Right now, I make my site in a subfolder and then the default page is
basically a redirector, which seems like an inefficient step.

Shouldn't we have the power to choose where we want the project?

Thanks again for your responses I'm learing somethings.


Meet people for friendship, contacts,
or romance using free instant messaging software! See a picture you
like? Click once for a private conversation with that person!
<a href="http://www.sen.us"><im g
src="http://www.sen.us/mirror/SENLogo_62_31.j pg">
</a>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #8
Here's the information you requested on creating a web app in the root web:
http://support.microsoft.com/default...b;en-us;303845

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"David Berman" <da**********@b ose.com> wrote in message
news:eS******** ******@tk2msftn gp13.phx.gbl...
Whenever I want to create a C# / asp.net based web site, Visual Studio
always requires a subdirectory for the project. So when I make my site,
for example abcinc.com, the web site ends up at
http://www.abcinc.com/abcinc/ or some other subdirectory. How can I
just setup a project for http//www.abcinc.com/ ?

Thank you! This is driving me nvts!


<img src="http://www.sen.us/mirror/SENLogo_62_31.j pg">
Meet people for friendship, contacts,
or romance using free instant messaging software! See a picture you
like? Click once for a private conversation with that person!
http://www.sen.us

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #9
"David Berman" <da**********@b ose.com> wrote...
Shouldn't we have the power to choose where we want the project?
I'll answer them in reverse order. Sure we should... it looks like somebody
has pointed you to an MSDN article which might answer the question. On the
other hand...
Right now, I make my site in a subfolder and then the default page is
basically a redirector, which seems like an inefficient step.


It isn't that inefficient (using the scientific definition of "that") and
the indirection gains you something. It isn't entirely like the indirection
used in OOP development at the cost of some CPU cycles. It will always lose
the efficiency argument as it is definitely less efficient if you only
measure response time. Considering what that one level of indirection can
gain you (if taken advantage of) my solution was to add it when in the case
of .ASP it wasn't built-in.

A simple parameter can (for instance) take you to a test version or to
various non-public "sub-sites". In any case it seems that MS has a solution
for you.

Tom
Nov 17 '05 #10

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

Similar topics

2
3131
by: Keith Jakobs, MCP | last post by:
Greetings: I had seen several posts around the Internet about this issue from a few months back, but have been unable to find a resolution ... I have a user who is trying to get started with Visual Studio.NET 2003. We have uninstalled and reinstalled the Product.... then we did a complete cleanout of development products, re-installed IIS, and reinstalled JUST Visual Studio.NET 2003 with Framework 1.1 (no more 2002 edition or...
3
1674
by: Jason | last post by:
Hi I was thinking about administering a web application written in ASP.NET (C#). when the authentication mode is set to "Windows", do all users within that particular domain have access? how do you decide who has access? which domain has access? eg. if the web server exists in the domain "GJDOM", then will all users in this domain have access? And if i were to block access to user "GJDOM\frank" how would i do that?
1
3274
by: TM | last post by:
I am trying to create an asp.net web application in Visual Studio.Net 2003 and when I try to create it on my windows 2003 server, I get this error "The web server reported the following error when attempting to create or open the web project at the following url: ......... HTTP/1.1 403 Forbidden" I went through the readme from the Visual Studio Install, and made sure the ASP.Net server extensions, front page server extensions and other...
1
4760
by: Joel Cade | last post by:
This is a really weird demon that pops up from time to time. We have a large ASP.Net site running, and randomly (every couple of days) across 5 servers, this error pops up. In the event log: Faulting application vbc.exe, version 7.10.6001.4, faulting module ntdll.dll, version 5.2.3790.0, fault address 0x00007933. The exception that is thrown on the page (which changes):
2
3636
by: vbnetdev | last post by:
This code does not work. I would appreciate any suggestions. I have to specify a domain name that is not even in its container otherwise it objects with errors abotu the method being invalid at GetMethodParameters. I have been able to create the zone and nameservers using similar methods without a problem. I am beginning to wonder if it is even possible. Dim classInstance20 As New ManagementObject( _ "root\MicrosoftDNS", _...
4
1540
by: Jim Carlock | last post by:
$_SERVER returns the root path for the subdomain, which is different than the root path for the primary domain. Is there a global variable to get the path for the root domain? What's the best way to handle this when you want to keep use the logo for the root domain? --
7
2252
by: Victor | last post by:
I've got two domain names sharing the same IP address that use ASP VBScript If I set a session variable with domain 1, it is only available for domain 1 - this is correct? If I set an application variable with domain 1, the app variable is sharing across all domains using that IP address - this is correct? This is the behavior I am seeing and I want to make sure that my server is set up correct. I especially want to make sure...
0
2041
by: Steve | last post by:
Hello- Your assistance with this issue is greatly appreciated. Environment: - Load-balanced IIS 6.0 servers (Win2003) - web servers point (via UNC path) to a Microsoft File Cluster on different machines. - domain ASPNET account that handles the function/permissions of the (traditionally) local machine ASP.NET account.
4
2303
by: John Straumann | last post by:
Hello all: Most of my development for websites has been on test VPC images where VS is installed on the server image. I now have a setup where I have a test server joined to my domain, and a development PC also joined to the domain. On the server I created a new website on port 99 called "dev", and then on the development PC I tried to create a new http website using http://testserver:99/testwebsite, however I get an error message...
0
9964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11529
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10659
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9858
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8218
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6079
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6297
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3505
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.