ASP .NET 2.0 Visual Studio 2005 - 部署 - 没有DLL [英] ASP .NET 2.0 Visual Studio 2005 - deploying - no DLLs

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

问题描述




我通常使用

Visual Studio 2005发布功能通过发布将我的ASP .NET应用程序部署到服务器。这将在

服务器上创建Bin文件夹,其中包含已编译的DLL。


我已被要求通过手动复制文件来发布。

我为应用程序停止了IIS,

从服务器删除了应用程序文件和子文件夹,

从本地PC复制​​了文件和文件夹'的项目,

重新启动IIS,

并在我的浏览器中启动了应用程序。


应用程序运行正常,我预计第一次使用将会触发网站的编译,但是Bin

文件夹中没有DLL文件,就像我使用Visual Studio发布时一样。 />

这是如何工作的?我怎样才能使用副本进行部署,并获得一个已编译的

网站?


提前致谢,


Richard

Hi,

I usually deploy my ASP .NET application to the server by publishing, using
Visual Studio 2005 publish feature. This creates the Bin folder on the
server, with the compiled DLLs.

I''ve been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC''s project,
restarted IIS,
and launched the application in my browser.

The application ran normally, and I expected that first use would have
triggered a compilation of the website, but there are no DLL files in the Bin
folder, like when I publish with Visual Studio.

How does this work? How can I still use copy to deploy, and get a compiled
website?

Thanks in advance,

Richard

推荐答案

ASP.NET 2.0动态编译您的应用程序。因此,重要的是复制

不仅是你的aspx页面,还有.cs(或.vb)文件以及目录

APP_CODE ..


BIN中只有依赖DLL ...


如果你想拥有一个DLL并且不想复制源代码,请查看

"预编译asp.net应用程序"

George。


" Richard" < Ri ***** @ discussion.microsoft.com写信息

news:97 *********************** *********** @ microsof t.com ...
ASP.NET 2.0 compiles your application on a fly. So it''s important to copy
not only your aspx pages but .cs (or .vb) files as well from directory
APP_CODE..

the BIN will have only dependency DLLs in it...

If you want to have a DLL and do not want to copy source code look up
"precompiling asp.net application"
George.

"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:97**********************************@microsof t.com...




我通常使用

Visual Studio 2005发布功能发布,使用
将我的ASP .NET应用程序部署到服务器。这将在

服务器上创建Bin文件夹,其中包含已编译的DLL。


我已被要求通过手动复制文件来发布。

我为应用程序停止了IIS,

从服务器删除了应用程序文件和子文件夹,

从本地PC复制​​了文件和文件夹'的项目,

重新启动IIS,

并在我的浏览器中启动了应用程序。


应用程序运行正常,我预计第一次使用会产生

触发网站编译,但

Bin

文件夹中没有DLL文件,就像当我使用Visual Studio发布。


这是如何工作的?我怎样才能使用副本进行部署,并获得一个已编译的

网站?


提前致谢,


Richard
Hi,

I usually deploy my ASP .NET application to the server by publishing,
using
Visual Studio 2005 publish feature. This creates the Bin folder on the
server, with the compiled DLLs.

I''ve been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC''s project,
restarted IIS,
and launched the application in my browser.

The application ran normally, and I expected that first use would have
triggered a compilation of the website, but there are no DLL files in the
Bin
folder, like when I publish with Visual Studio.

How does this work? How can I still use copy to deploy, and get a compiled
website?

Thanks in advance,

Richard



所有源代码(代码隐藏,以及App_Code文件夹中的源代码)都在上面

服务器。

我认为应用程序将在服务器上第一次运行时编译,这将在BIN文件夹中创建DLL文件。 br />

这不是它的工作方式吗?


" George Ter-Saakov"写道:
All source code (code behind, and source siles in the App_Code folder) is on
the server.
I thought that the application would be compiled on the server the first
time it was ran, and this would create the DLL files in the BIN folder.

Isn''t that the way it works?

"George Ter-Saakov" wrote:

ASP.NET 2.0动态编译您的应用程序。因此,重要的是复制

不仅是你的aspx页面,还有.cs(或.vb)文件以及目录

APP_CODE ..


BIN中只有依赖DLL ...


如果你想拥有一个DLL并且不想复制源代码,请查看

"预编译asp.net应用程序"


George。


" Richard" < Ri ***** @ discussion.microsoft.com写信息

news:97 *********************** *********** @ microsof t.com ...
ASP.NET 2.0 compiles your application on a fly. So it''s important to copy
not only your aspx pages but .cs (or .vb) files as well from directory
APP_CODE..

the BIN will have only dependency DLLs in it...

If you want to have a DLL and do not want to copy source code look up
"precompiling asp.net application"
George.

"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:97**********************************@microsof t.com...




我通常使用

Visual Studio 2005发布功能发布,使用
将我的ASP .NET应用程序部署到服务器。这将在

服务器上创建Bin文件夹,其中包含已编译的DLL。


我已被要求通过手动复制文件来发布。

我为应用程序停止了IIS,

从服务器删除了应用程序文件和子文件夹,

从本地PC复制​​了文件和文件夹'的项目,

重新启动IIS,

并在我的浏览器中启动了应用程序。


应用程序运行正常,我预计第一次使用会产生

触发网站编译,但

Bin

文件夹中没有DLL文件,就像当我使用Visual Studio发布。


这是如何工作的?我怎样才能使用副本进行部署,并获得一个已编译的

网站?


提前致谢,


Richard
Hi,

I usually deploy my ASP .NET application to the server by publishing,
using
Visual Studio 2005 publish feature. This creates the Bin folder on the
server, with the compiled DLLs.

I''ve been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC''s project,
restarted IIS,
and launched the application in my browser.

The application ran normally, and I expected that first use would have
triggered a compilation of the website, but there are no DLL files in the
Bin
folder, like when I publish with Visual Studio.

How does this work? How can I still use copy to deploy, and get a compiled
website?

Thanks in advance,

Richard






re:

!我认为应用程序会在服务器上编译第一个

!它运行的时间,这将在BIN文件夹中创建DLL文件。


如果你不''在预编译时,创建的唯一dll将位于ASP.NET临时文件目录中。


re:

!我被要求通过手动复制文件来发布。


如果你没有预编译,这不是一个好主意。


在这些文章中找出你的ASP.NET 2.0发布选项:

http:// weblogs.asp.net/scottgu/archi...h-VS-2005.aspx

http://maordavid.blogspot.com/2007/0...plication.html


Juan T. Llibre,asp.net MVP

asp.net faq: http://asp.net.do/faq/

foros de asp.net,en espa?ol: http://asp.net.do/foros/

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

" Richard" ; < Ri ***** @ discuss.microsoft.com写信息

news:67 *********************** *********** @ microsof t.com ...
re:
!I thought that the application would be compiled on the server the first
!time it was ran, and this would create the DLL files in the BIN folder.

If you don''t pre-compile, the only dlls created will be
located in the ASP.NET Temporary Files directory.

re:
!I''ve been asked to publish by copying the files manually instead.

That is not such a good idea if you don''t pre-compile.

Figure out your ASP.NET 2.0 publishing options in these articles :

http://weblogs.asp.net/scottgu/archi...h-VS-2005.aspx

http://maordavid.blogspot.com/2007/0...plication.html

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?ol : http://asp.net.do/foros/
======================================
"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:67**********************************@microsof t.com...

所有源代码(代码隐藏,以及App_Code文件夹中的源文件)在服务器上是



我以为应用程序会在服务器上编译它运行的第一个

时间,这样就可以了在BIN文件夹中创建DLL文件。


这不是它的工作方式吗?


" George Ter-Saakov"写道:
All source code (code behind, and source files in the App_Code folder) is on
the server.
I thought that the application would be compiled on the server the first
time it was ran, and this would create the DLL files in the BIN folder.

Isn''t that the way it works?

"George Ter-Saakov" wrote:

> ASP.NET 2.0动态编译您的应用程序。所以重要的是不仅要复制你的aspx页面,还要复制.cs(或.vb)文件以及目录
APP_CODE ..

BIN只有依赖DLL在其中...

如果你想拥有一个DLL并且不想复制源代码,请查看
预编译asp.net应用程序

乔治。

理查德 < Ri ***** @ discussion.microsoft.com写信息
新闻:97 *************************** ******* @ microso ft.com ...
>ASP.NET 2.0 compiles your application on a fly. So it''s important to copy
not only your aspx pages but .cs (or .vb) files as well from directory
APP_CODE..

the BIN will have only dependency DLLs in it...

If you want to have a DLL and do not want to copy source code look up
"precompiling asp.net application"
George.

"Richard" <Ri*****@discussions.microsoft.comwrote in message
news:97**********************************@microso ft.com...




我通常部署我的ASP通过发布.NET服务器到服务器,

使用

Visual Studio 2005发布功能。这将在

服务器上创建Bin文件夹,其中包含已编译的DLL。


我已被要求通过手动复制文件来发布。

我为应用程序停止了IIS,

从服务器删除了应用程序文件和子文件夹,

从本地PC复制​​了文件和文件夹'的项目,

重新启动IIS,

并在我的浏览器中启动了应用程序。


应用程序运行正常,我预计第一次使用会产生

触发网站编译,但

Bin

文件夹中没有DLL文件,就像当我使用Visual Studio发布。


这是如何工作的?我怎样才能使用副本进行部署,并获得一个已编译的

网站?


提前致谢,


Richard
Hi,

I usually deploy my ASP .NET application to the server by publishing,
using
Visual Studio 2005 publish feature. This creates the Bin folder on the
server, with the compiled DLLs.

I''ve been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC''s project,
restarted IIS,
and launched the application in my browser.

The application ran normally, and I expected that first use would have
triggered a compilation of the website, but there are no DLL files in the
Bin
folder, like when I publish with Visual Studio.

How does this work? How can I still use copy to deploy, and get a compiled
website?

Thanks in advance,

Richard







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

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