部署ASP.NET项目 [英] Deploying ASP.NET projects

查看:66
本文介绍了部署ASP.NET项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,希望有人可以帮助我:


我打算将多个ASP.NET项目部署到生产服务器。

通常我使用项目/复制项目。 VS.NET中的选项,但对于这个
生产服务器我只有FTP访问权限。我尝试使用

FTP工具复制文件,但似乎每个应用程序都需要有一个自己的虚拟

目录,这是真的吗?或者是否可以只创建一个虚拟目录

并将项目放在那里?


因此有可能只部署ftp访问权限,或者我需要

要求系统管理员设置首页服务器扩展?


Greets,


Gerben。

解决方案

让我看看能否帮助您更好地理解这些实体。 ASP.Net

Web应用程序是一个可执行应用程序。因此,它必须在

的某些过程中运行。该过程由

应用程序的Web服务器配置定义。因为它是一个.Net应用程序,直接位于Web服务器应用程序的root

文件夹下,所以必须有一个bin文件夹,其中可以找到

DLL。位置几乎是.Net中的一切。包含Machine to application的web.config

文件应用程序的设置必须

驻留在应用程序的根文件夹中。各种ASPX页面和

其他文件可以位于

应用程序的根文件夹下或任何位置。但是,这与FrontPage

服务器扩展没有任何关系。 Visual Studio.Net使用它们来处理

Web服务器,获取文档,设置Web应用程序等等。在运行时完全没有必要使用它们。 。


因此可以将您的文件FTP到Web服务器,或者以他们喜欢的任何方式将它们放在它们所属的位置。在IIS中设置Web应用程序

必须由Web服务器的网络管理员完成。


-

HTH,

Kevin Spencer

..Net开发人员

微软MVP

大事做成<很多小东西都是



" Gerben van Loon" <无************* @ home.nl>在留言中写道

news:bu ********** @ news4.tilbu1.nb.home.nl ...

你好,希望有人我可以帮助我:

我打算将几个ASP.NET项目部署到生产服务器。
通常我使用项目/复制项目。 VS.NET中的选项,但对于这个生产服务器我只有FTP访问权限。我尝试使用
FTP工具复制文件,但似乎每个应用程序都需要有一个自己的虚拟目录,这是真的吗?或者是否可以只创建一个虚拟
目录并将项目放在那里?

那么是否有可能只使用ftp访问部署,或者我是否需要
请系统管理员设置首页服务器扩展?

Gerets。



嗨Kevin,


首先感谢您的回复。我不是100%了解你,但是

让我们看看我是不对的:


- 一个ASP.NET项目是一个应用程序,而不仅仅是几个网页。通过

为项目创建虚拟目录IIS知道hat虚拟

目录是一个应用程序。所以每个项目都需要一个自己的虚拟目录运行,你不能在一个虚拟目录中拥有多个项目,因为每个
虚拟目录代表一个应用程序。


- Frontpage服务器扩展可以在
a远程服务器上自动创建虚拟目录,以便可以直接运行ASP.NET。


所以这可以得出结论,当你只有FTP访问网络服务器时,

是不是可以部署ASP.NET项目?


greets,


Gerben。


" Kevin Spencer" <柯*** @ takempis.com>在消息中写道

新闻:eZ **************** @ TK2MSFTNGP11.phx.gbl ...

让我看看如果我能帮助你更好地理解这些实体。
ASP.Net Web应用程序是一个可执行应用程序。因此,它必须在某些过程中运行。此过程由
和application的Web服务器配置定义。因为它是一个.Net应用程序,直接位于Web服务器应用程序的根文件夹下,所以必须有一个可以找到
DLL的bin文件夹。位置几乎是.Net中的一切。包含Machine to application的web.config
文件。应用程序的设置必须位于应用程序的根文件夹中。各种ASPX页面和
其他文件可以位于
应用程序的根文件夹或其下的任何位置。但是,这与FrontPage
服务器扩展没有任何关系。 Visual Studio.Net使用它们来处理Web服务器
,获取文档,设置Web应用程序等等。在运行时它们是完全没有必要的。
因此可以将您的文件FTP到Web服务器,或者以您喜欢的方式将
放在它们所属的位置。在
中设置Web应用程序IIS必须由Web服务器的网络管理员完成。

-
HTH,
Kevin Spencer
.Net开发人员
微软MVP
很多小东西组成了很多东西。

Gerben van Loon <无************* @ home.nl>在消息中写道
新闻:bu ********** @ news4.tilbu1.nb.home.nl ...

你好,希望有人可以帮助我这个:

我打算将几个ASP.NET项目部署到生产服务器。
通常我使用项目/复制项目。 VS.NET中的选项,但是
这个生产服务器我只有FTP访问权限。我尝试用
一个FTP工具复制文件,但似乎每个应用程序都需要有一个自己的
虚拟目录,这是真的吗?或者是否可以只创建一个虚拟


目录

并将项目放在那里?

所以有可能部署仅限ftp访问,还是需要
来要求系统管理员设置首页服务器扩展?

Greets,

Gerben。




您好Gerben,


您几乎100%正确,事实上,我可能只是误解了你的上一句话,并且你可能100%正确。只要网站已经配置为应用程序,就可以只使用FTP部署ASP.Net项目。

-

HTH,

Kevin Spencer

..Net开发人员

Microsoft MVP

大的东西组成

很多小东西。


" Gerben van Loon" <无************* @ home.nl>在消息中写道

news:bu ********** @ news3.tilbu1.nb.home.nl ...

嗨凯文,

首先感谢您的回复。我不是100%了解你,但是让我们看看我是不对的:

- 一个ASP.NET项目是一个应用程序,而不仅仅是几个网页。
通过为项目创建虚拟目录,IIS知道hat virtual
目录是一个应用程序。因此每个项目都需要一个自己的虚拟
目录来运行,你不能在1个虚拟目录中拥有多个项目,因为
每个虚拟目录代表一个应用程序。

- Frontpage服务器扩展可以自动在远程服务器上创建一个虚拟目录
,以便可以直接运行ASP.NET。

这样就可以得出结论,当你只有一个FTP访问web服务器
时部署ASP.NET项目是不可行的?

greets,

Gerben。

Kevin Spencer <柯*** @ takempis.com>在消息中写道
新闻:eZ **************** @ TK2MSFTNGP11.phx.gbl ...

让我看看我是否可以提供帮助你更好地理解这些实体。 ASP.Net

Web应用程序是一个可执行的应用程序。因此,它必须在

某些进程下运行
。该过程由

的application的web服务器配置定义。因为它是一个.Net应用程序,直接位于Web服务器应用程序的根文件夹下,所以必须有一个bin文件夹,其中
可以找到DLL。位置几乎是.Net中的一切。包含Machine to application的
web.config文件应用程序的设置必须位于应用程序的根文件夹中。各种ASPX页面和
其他文件可以位于
应用程序的根文件夹或其下的任何位置。但是,这与FrontPage
服务器扩展没有任何关系。 Visual Studio.Net使用它们来处理


>

web服务器,获取文档,设置Web应用程序等等。他们
完全没必要在运行时。

因此可以将文件FTP到Web服务器,或者将


它们

放在它们所属的位置任何你喜欢的方式。在

中设置Web应用程序
IIS

是必须由Web服务器的网络管理员完成的。

-
HTH,
Kevin Spencer
.Net开发人员
微软MVP
很多东西都是由很多东西组成的。

Gerben van Loon <无************* @ home.nl>在消息中写道
新闻:bu ********** @ news4.tilbu1.nb.home.nl ...

你好,希望有人可以帮助我这个:

我打算将几个ASP.NET项目部署到生产
服务器上。通常我使用项目/复制项目。 VS.NET中的选项,但


这个生产服务器我只有FTP访问权限。我尝试用FTP工具复制文件


,但似乎每个应用程序都需要有一个自己的虚拟目录,这是真的吗?或者是否可以只创建一个虚拟


目录

并将项目放在那里?

所以有可能部署仅限ftp访问,或者我是否需要请求系统管理员设置首页服务器扩展?

Gerets,





Hi there, hope someone can help me on this:

I''m planning to deploy several ASP.NET projects to a production server.
Normally I used the "Project / Copy project" option in VS.NET, but to this
production server I only have FTP access. I tried copying the files with a
FTP tool, but it seems that every application needs to have an own virtual
directory, is this true? Or is it possible to just make 1 virtual directory
and put al the projects in there?

So is there a possibility to deploy with ftp access only, or do I need to
ask the system administrator to set up frontpage server extensions?

Greets,

Gerben.

解决方案

Let me see if I can help you to understand these entities better. An ASP.Net
web application is an executable application. Therefore, it must run under
some process. This process is defined by the web server configuration of an
"application". Because it is a .Net application, directly under the root
folder of the web server application, there must be a bin folder where the
DLLs can be located. Location is almost everything in .Net. The web.config
file containing the "Machine to application" settings for the app must
reside in the root folder of the application. The various ASPX pages and
other files can be located anywhere at or under the root folder of the
application. However, this has nothing whatsoever to do with FrontPage
server extensions. Those are used by Visual Studio.Net for working with the
web server, getting documents, setting up a Web Application, etc. They are
completely unnecessary at run-time.

It is therefore possible to FTP your files to the web server, or to put them
where they belong in any way you like. Setting up the web application in IIS
is something which must be done by the network admin of the web server.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Gerben van Loon" <no*************@home.nl> wrote in message
news:bu**********@news4.tilbu1.nb.home.nl...

Hi there, hope someone can help me on this:

I''m planning to deploy several ASP.NET projects to a production server.
Normally I used the "Project / Copy project" option in VS.NET, but to this
production server I only have FTP access. I tried copying the files with a
FTP tool, but it seems that every application needs to have an own virtual
directory, is this true? Or is it possible to just make 1 virtual directory and put al the projects in there?

So is there a possibility to deploy with ftp access only, or do I need to
ask the system administrator to set up frontpage server extensions?

Greets,

Gerben.



Hi Kevin,

First of all thanks for your reply. I''m not understanding you 100%, but
let''s see if I''m right:

- An ASP.NET project is an application and not just a couple of webpages. By
making a virtual directory for a project IIS knows that hat virtual
directory is an application. So every project needs an own virtual directory
to run, you cannot have multiple projects in 1 virtual directory since every
virtual directory represents an application.

- Frontpage server extensions can automaticly create a virtual directory on
a remote server so that a ASP.NET can directly be run.

So this would conclude that when you only have FTP access to a webserver it
isn''t posible the deploy ASP.NET projects?

greets,

Gerben.

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:eZ****************@TK2MSFTNGP11.phx.gbl...

Let me see if I can help you to understand these entities better. An ASP.Net web application is an executable application. Therefore, it must run under
some process. This process is defined by the web server configuration of an "application". Because it is a .Net application, directly under the root
folder of the web server application, there must be a bin folder where the
DLLs can be located. Location is almost everything in .Net. The web.config
file containing the "Machine to application" settings for the app must
reside in the root folder of the application. The various ASPX pages and
other files can be located anywhere at or under the root folder of the
application. However, this has nothing whatsoever to do with FrontPage
server extensions. Those are used by Visual Studio.Net for working with the web server, getting documents, setting up a Web Application, etc. They are
completely unnecessary at run-time.

It is therefore possible to FTP your files to the web server, or to put them where they belong in any way you like. Setting up the web application in IIS is something which must be done by the network admin of the web server.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Gerben van Loon" <no*************@home.nl> wrote in message
news:bu**********@news4.tilbu1.nb.home.nl...

Hi there, hope someone can help me on this:

I''m planning to deploy several ASP.NET projects to a production server.
Normally I used the "Project / Copy project" option in VS.NET, but to this production server I only have FTP access. I tried copying the files with a FTP tool, but it seems that every application needs to have an own virtual directory, is this true? Or is it possible to just make 1 virtual


directory

and put al the projects in there?

So is there a possibility to deploy with ftp access only, or do I need to ask the system administrator to set up frontpage server extensions?

Greets,

Gerben.




Hi Gerben,

You are nearly 100% correct, and in fact, I may just be misunderstanding
your last remark, and you may be 100% correct. It is certainly possible to
deploy ASP.Net projects using only FTP, as long as the web site is already
configured as an application.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Gerben van Loon" <no*************@home.nl> wrote in message
news:bu**********@news3.tilbu1.nb.home.nl...

Hi Kevin,

First of all thanks for your reply. I''m not understanding you 100%, but
let''s see if I''m right:

- An ASP.NET project is an application and not just a couple of webpages. By making a virtual directory for a project IIS knows that hat virtual
directory is an application. So every project needs an own virtual directory to run, you cannot have multiple projects in 1 virtual directory since every virtual directory represents an application.

- Frontpage server extensions can automaticly create a virtual directory on a remote server so that a ASP.NET can directly be run.

So this would conclude that when you only have FTP access to a webserver it isn''t posible the deploy ASP.NET projects?

greets,

Gerben.

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:eZ****************@TK2MSFTNGP11.phx.gbl...

Let me see if I can help you to understand these entities better. An ASP.Net

web application is an executable application. Therefore, it must run under

some process. This process is defined by the web server configuration of


an

"application". Because it is a .Net application, directly under the root
folder of the web server application, there must be a bin folder where the DLLs can be located. Location is almost everything in .Net. The web.config file containing the "Machine to application" settings for the app must
reside in the root folder of the application. The various ASPX pages and
other files can be located anywhere at or under the root folder of the
application. However, this has nothing whatsoever to do with FrontPage
server extensions. Those are used by Visual Studio.Net for working with


the

web server, getting documents, setting up a Web Application, etc. They are completely unnecessary at run-time.

It is therefore possible to FTP your files to the web server, or to put


them

where they belong in any way you like. Setting up the web application in


IIS

is something which must be done by the network admin of the web server.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Gerben van Loon" <no*************@home.nl> wrote in message
news:bu**********@news4.tilbu1.nb.home.nl...

Hi there, hope someone can help me on this:

I''m planning to deploy several ASP.NET projects to a production server. Normally I used the "Project / Copy project" option in VS.NET, but to


this production server I only have FTP access. I tried copying the files

with a FTP tool, but it seems that every application needs to have an own virtual directory, is this true? Or is it possible to just make 1 virtual


directory

and put al the projects in there?

So is there a possibility to deploy with ftp access only, or do I need to ask the system administrator to set up frontpage server extensions?

Greets,

Gerben.





这篇关于部署ASP.NET项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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