如何在域根目录中创建Web应用程序? [英] How do I create a Web Application at the domain root?

查看:53
本文介绍了如何在域根目录中创建Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我想创建一个基于C#/ asp.net的网站时,Visual Studio

总是需要一个项目的子目录。因此,当我创建我的网站时,例如abcinc.com的b $ b,该网站最终会在
http://www.abcinc.com/abcinc/ 或其他一些子目录。我怎么能

只为http // www.abcinc.com设置项目/?


谢谢!这让我很开心!


< img src =" http://www.sen.us/mirror/SENLogo_62_31.jpg">

使用免费的即时通讯软件与人们交流友谊,联系,

或浪漫!看到你的图片

喜欢?点击一次与该人进行私人对话!
http://www.sen.us


***通过开发人员指南 http:/ /www.developersdex.com ***

不要只参加USENET ......获得奖励!

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.jpg">
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!

推荐答案



大卫 -


这也让我疯了。


我想出了一个解决方案,我将在下面介绍。但是,有一个

的限制。


如果您使用的是Windows 2000 Server之外的任何东西,那么您有一个

问题在于操作系统不允许您在

计算机上创建多个网站。因此,您不能将 www.abcinc.com 创建为新网站,因为

已经有一个默认网站。


在这种情况下,你可以接受这样一个事实:你只能开发一个

网站一次,或者你可以通过一些痛苦来愚弄Windows进入

让你创建多个网站。

要解决你的问题,你应该手动创建网站IIS

控制程序(即通过MMC)


然后,在你的HOSTS文件中添加一个如下所示的条目:

127.0.0.1 www.abcinc.com


现在您可以在Visual Studio .NET中创建解决方案,当它询问您

的URL时,只需将其指向 www.abcinc.com


" David Berman" <哒********** @ bose.com>在消息中写道

news:eS ************** @ tk2msftngp13.phx.gbl ...

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**********@bose.com> wrote in message
news:eS**************@tk2msftngp13.phx.gbl...
每当我想创建一个基于C#/ asp.net的网站,Visual Studio
总是需要一个项目的子目录。因此,当我创建我的网站时,例如abcinc.com,该网站最终会在
http://www.abcinc.com/abcinc/ 或其他一些子目录。我怎样才能为http // www.abcinc.com设置项目/?

谢谢!这让我感到震惊!


< img src =" http://www.sen.us/mirror/SENLogo_62_31.jpg">
结识朋友使用免费即时通讯软件的友谊,联系,
或浪漫!看到你喜欢的照片?点击一次与该人进行私人对话!
http://www.sen.us

***通过Developersdex发送 http://www.developersdex .com ***
不要只是参加USENET ......获得奖励!
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.jpg">
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!



我只是在子目录中开发应用程序,然后在完成后将其复制到root

目录中。


" David Berman" <哒********** @ bose.com>在消息中写道

news:eS ************** @ tk2msftngp13.phx.gbl ...
I just develop the app in the subdirectory, then copy it into the root
directory when I''m done.

"David Berman" <da**********@bose.com> wrote in message
news:eS**************@tk2msftngp13.phx.gbl...
每当我想创建一个基于C#/ asp.net的网站,Visual Studio
总是需要一个项目的子目录。因此,当我创建我的网站时,例如abcinc.com,该网站最终会在
http://www.abcinc.com/abcinc/ 或其他一些子目录。我怎样才能为http // www.abcinc.com设置项目/?

谢谢!这让我感到震惊!


< img src =" http://www.sen.us/mirror/SENLogo_62_31.jpg">
结识朋友使用免费即时通讯软件的友谊,联系,
或浪漫!看到你喜欢的照片?点击一次与该人进行私人对话!
http://www.sen.us

***通过Developersdex发送 http://www.developersdex .com ***
不要只是参加USENET ......获得奖励!
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.jpg">
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!



谢谢对你的回答,但那不是我的意思。我是运行Windows 2000服务器的
我可以设置多个网站。我遇到的问题是,当我尝试使用Visual

Studio创建项目时,它会要求输入网址,并要求您输入网址必须

有一个子目录。我不能说,在
http://www.abcinc创建一个新的网络项目.com ,我必须在最后指定/某事。怎么做

我在根目录下用asp.net创建一个web应用程序?


谢谢,

David


< img src =" http://www.sen.us/mirror/SENLogo_62_31.jpg">

与友谊,联系人会面,

或浪漫使用免费的即时通讯软件!看到你的图片

喜欢?点击一次与该人进行私人对话!
http://www.sen.us


***通过开发人员指南 http:/ /www.developersdex.com ***

不要只是参加USENET ......获得奖励!
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.jpg">
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!


这篇关于如何在域根目录中创建Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆