将网站从File更改为Http [英] Change Website from File to Http

查看:155
本文介绍了将网站从File更改为Http的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们创建了一个文件 XP上的网站并将其转移到server2003。

现在我们要将其更改为HTTP站点。没有创建一个新项目

和导入everthing,有没有办法转换它?属性显示

file:/// C:/ Inetpub / wwwroot / etc.但它不能改为HTTP。在某些配置文件中某处有




-

问候,

Gary Blakely

We created a "File" website on XP and transferred it over to server2003.
Now we want to change it to an HTTP site. Without creating a new project
and importing everthing, it there a way to convert it? the properties show
file:///C:/Inetpub/wwwroot /etc. but it can''t be changed to HTTP. It''s got
to be somewhere in some configuration file.

--
Regards,
Gary Blakely

推荐答案

为什么要将其更改为HTTP?

什么是Server 2003,一个QA服务器或生产服务器?


您可以简单地创建一个具有相同名称的空http项目,并将文件复制到其中。我不是真的明白这一点,如果你只是简单地

发布QA或制作网站只需使用发布网站

菜单。如果你有几个开发人员使用相同的代码,你会想要将它作为一个文件项目留下来。


问候,

Brian K. Williams


" GaryDean" < Ga ****** @ newsgroups.nospamwrote in message

news:eD ************** @ TK2MSFTNGP03.phx.gbl ...
Why would you want to change it to HTTP?
What is the Server 2003, a QA Server or Production Server?

You could simply create an empty http project with the same name and copy
the files into it. I don''t really see the point, if you are simply
publishing the website for QA or Production just use the Publish Website
menu. If you have several developers working on the same code, you will
probably want to leave it as a file project.

Regards,
Brian K. Williams


"GaryDean" <Ga******@newsgroups.nospamwrote in message
news:eD**************@TK2MSFTNGP03.phx.gbl...

我们创建了一个文件 XP上的网站并将其转移到server2003。

现在我们要将其更改为HTTP站点。没有创建一个新项目

和导入everthing,有没有办法转换它?属性

显示文件:/// C:/ Inetpub / wwwroot / etc.但它不能改为HTTP。

它必须在某个配置文件中的某个位置。


-

问候,

Gary Blakely

We created a "File" website on XP and transferred it over to server2003.
Now we want to change it to an HTTP site. Without creating a new project
and importing everthing, it there a way to convert it? the properties
show file:///C:/Inetpub/wwwroot /etc. but it can''t be changed to HTTP.
It''s got to be somewhere in some configuration file.

--
Regards,
Gary Blakely



网站没有项目文件。只需adda vdir指向文件

目录,从解决方案中删除网站,然后从iis添加网站。

- bruce(sqlwork.com)


GaryDean写道:
websites don''t have project files. just adda vdir pointing to the file
dir, drop the site from the solution, then add the site from iis.
-- bruce (sqlwork.com)

GaryDean wrote:

我们创建了一个文件 XP上的网站并将其转移到server2003。

现在我们要将其更改为HTTP站点。没有创建一个新项目

和导入everthing,有没有办法转换它?属性显示

file:/// C:/ Inetpub / wwwroot / etc.但它不能改为HTTP。在某些配置文件中某处需要


We created a "File" website on XP and transferred it over to server2003.
Now we want to change it to an HTTP site. Without creating a new project
and importing everthing, it there a way to convert it? the properties show
file:///C:/Inetpub/wwwroot /etc. but it can''t be changed to HTTP. It''s got
to be somewhere in some configuration file.


Hello Gary,

用于更改文件基于ASP.NET 2.0的web项目到http / IIS托管的web

项目,你不需要创建一个新项目。您需要做的是

将您的Web应用程序放入IIS(在某个应用程序虚拟

详细步骤如下:


1.在服务器的IIS中,创建一个新的虚拟目录并将其链接到您的

原始文件web项目的主目录(您还可以使用文件资源管理器中的webshare

选项卡将您的Web项目文件夹链接到IIS)。确保将虚拟目录创建为应用程序虚拟目录并将其创建为应用程序虚拟目录。其中

包含一个应用程序名称。


2.虚拟目录(链接到您的文件项目文件夹)之后已经

创建,检查ASP.NET特定设置,以确保它们适合ASP.NET

2.0应用程序。例如,ASP.NET版本号,应用程序

池(确保您使用来自其他ASP.NET 1.x

Web应用程序的单独应用程序池)。


3.配置IIS应用程序虚拟目录后,您可以启动VS 2005并从IIS打开Web项目,如下所示:


**文件 - 打开网站...


**在对话框的左侧视图中,选择本地IIS。面板,在右视图中,

选择您在上面创建的应用程序虚拟目录并打开它。


希望这会有所帮助。

此致,


Steven Cheng


Microsoft MSDN在线支持主管


==================================================


通过电子邮件收到我的帖子通知?请参阅
http://msdn.microsoft .com / subscripti ... ult.aspx#notif

ications。


注意:MSDN托管新闻组支持服务是针对非紧急问题

如果社区或微软支持人员在1个工作日内做出初步回复是可以接受的。请注意,每个跟随

的响应可能需要大约2个工作日作为支持

专业人士与您合作可能需要进一步调查才能达到

最有效的分辨率。该产品不适用于需要紧急,实时或基于电话的交互或复杂的b $ b项目分析和转储分析问题的情况。这种性质的问题最好通过联系

Microsoft客户支持服务(CSS)处理
href =http://msdn.microsoft.com/subscriptions/support/default.aspx\"target =_ blank> http://msdn.microsoft.com/subscripti...t/default.aspx


==================================== ==============


此帖子按原样提供。没有保证,也没有授予任何权利。


Hello Gary,

For changing a "file" based ASP.NET 2.0 web project to http/IIS hosted web
project, you do not need to create a new project. What you need to do is
put your web application into IIS(in a certain application virtual
directory) and use VS 2005 to open that web project(through IIS/http path).
The detailed steps are as below:

1. In your server''s IIS, create a new virtual directory and link it to your
original file web project''s main directory(you can also use the "webshare"
tab in file explorer to link your web project folder into IIS). Make sure
the virtual directory is created as "application virtual directory" which
contains an application name.

2. After the virtual directory(link to your file project folder) has been
created, check the ASP.NET specific settings to make sure they suit ASP.NET
2.0 application. For example, the ASP.NET version number, the application
pool(make sure you use a separate application pool from other ASP.NET 1.x
web application).

3. After the IIS application virtual directory has been configured, you can
launch VS 2005 and open the web project from IIS as below:

** file --open website...

** in dialog''s left view, select "Local IIS" panel, in the right view,
select the application virtual directory you created above and open it.

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.



这篇关于将网站从File更改为Http的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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