w3wp.exe锁定DLL和PDB文件。 [英] w3wp.exe locking DLL and PDB files.

查看:98
本文介绍了w3wp.exe锁定DLL和PDB文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




i有一个使用(类库项目)VB.NET DLL的ASP.NET项目。

出于某种原因运行后Web服务器上的一些页面,并尝试编译类库DLL,它无法编译,因为DLL正在使用(和PDB也是如此),而w3wp.exe进程是锁定DLL的进程(如下所示)与Sysinternals - Process Explorer)。

这是一个很大的问题。我需要重置IIS以释放DLL!


1.为什么w3wp.exe进程锁定类库dll而不是锁定asp.net DLL?

2.生产环境会是什么,如果我必须停止网络服务器才能更换DLL,这是不可接受的。

3.使用asp-dot- net DLL我只需要替换DLL并更新Web服务器。现在有了共享的类库项目我应该有更多的问题吗?

请帮忙吧。


TIA,z。

解决方案

我假设您的意思是在第一次通过IIS服务器请求相应页面触发DLL后,代码隐藏的ASP.NET DLL正在使用?

出于性能原因(以及其他),ASP.NET DLL在第一次需要时加载并保持加载状态。


你可以卸载(或通过使用Internet信息服务)来改变加载的方式。小应用程序(应用程序保护和卸载)


Wim

" z。 F"。 <滋** @ info-scopeREMSPAM.co.il>在留言新闻中写道:ut ************** @ TK2MSFTNGP09.phx.gbl ...




i有一个ASP.NET项目使用(类库项目)VB.NET DLL。

由于某种原因在Web服务器上运行一些页面后,并尝试编译类库DLL,它无法编译因为DLL正在使用(以及PDB),而w3wp.exe进程是锁定DLL的进程(与Sysinternals一起查看 - 进程资源管理器)。

this是一个很大的问题。我需要重置IIS以释放DLL!


1.为什么w3wp.exe进程锁定类库dll而不是锁定asp.net DLL?

2.生产环境会是什么,如果我必须停止网络服务器才能更换DLL,这是不可接受的。

3.使用asp-dot- net DLL我只需要替换DLL并更新Web服务器。现在有了共享的类库项目我应该有更多的问题吗?

请帮忙吧。


TIA,z。


我很遗憾地告诉你,你的回复不准确。

首先,IIS没有锁定我的aspnet DLL。即使一分钟前我运行一个使用此DLL的页面,我也可以随时更换它。

IIS正在锁定我的aspnet DLL引用和使用的常规VB.NET DLL。 br />
假设我有一个名为mywebapp的vb.net web应用程序并编译为mywebapp.dll

而mywebapp正在使用一个写为类库项目的dll,并且名为util.dll

所有项目都位于名为devserver的开发服务器(win2003)上。


i使用我的浏览器来调整 http://devserver/mywebapp/homepage.aspx

homepage.aspx codebehind已编译进入mywebapp.dll并使用util.dll

如果我对util.dll项目进行更改并想立即编译它,dll正在使用中,不能再次构建。

如果我对我的homepage.aspx代码隐藏进行更改并将其编译为mywebapp.dll - 没有问题。

此行为是我不太理解这个问题。我很难解决这个问题。



" wl" < NOSPAM @ NOSPAM>在消息新闻中写道:OY ************** @ TK2MSFTNGP09.phx.gbl ...

我假设您的意思是代码隐藏的ASP.NET DLL所在在第一次从IIS服务器请求相应的页面触发DLL后使用?

出于性能原因(以及其他),ASP.NET DLL在第一次需要时加载并且它保持加载。


您可以使用Internet信息服务卸载(或更改加载方式)。小应用程序(应用程序保护和卸载)


Wim

" z。 F"。 <滋** @ info-scopeREMSPAM.co.il>在留言新闻中写道:ut ************** @ TK2MSFTNGP09.phx.gbl ...




i有一个ASP.NET项目使用(类库项目)VB.NET DLL。

由于某种原因在Web服务器上运行一些页面后,并尝试编译类库DLL,它无法编译因为DLL正在使用(以及PDB),而w3wp.exe进程是锁定DLL的进程(与Sysinternals一起查看 - 进程资源管理器)。

this是一个很大的问题。我需要重置IIS以释放DLL!


1.为什么w3wp.exe进程锁定类库dll而不是锁定asp.net DLL?

2.生产环境会是什么,如果我必须停止网络服务器才能更换DLL,这是不可接受的。

3.使用asp-dot- net DLL我只需要替换DLL并更新Web服务器。现在有了共享的类库项目我应该有更多的问题吗?

请帮忙吧。


TIA,z。




我假设您没有使用GAC,对吧?


-

Scott
http://www.OdeToCode。 com / blogs / scott /

2004年11月23日星期二15:18:41 +0200," z。 f。

< zi ** @ info-scopeREMSPAM.co.il>写道:

我很遗憾地告诉你,你的回答并不准确。
首先,IIS没有锁定我的aspnet DLL。即使一分钟前我运行一个使用此DLL的页面,我也可以随时更换它。
IIS正在锁定我的aspnet DLL引用和使用的常规VB.NET DLL。
让我们说我有一个名为mywebapp的vb.net网络应用程序并编译为mywebapp.dll
而mywebapp使用的是一个写为类库项目的dll,名为util.dll
所有项目都位于在名为devserver的开发服务器(win2003)上。

我使用我的浏览器来调整 http://devserver/mywebapp/homepage.aspx
homepage.aspx codebehind编译成mywebapp.dll并使用util.dll
如果我对util.dll进行更改项目,并希望现在编译,dll正在使用,不能再次构建。
如果我更改我的homepage.aspx代码隐藏并将其编译为mywebapp.dll - 没有问题。<这种行为是不可接受的,我很难解决这个问题。


wl < NOSPAM @ NOSPAM>在消息新闻中写道:OY ************** @ TK2MSFTNGP09.phx.gbl ...
我假设您的意思是代码隐藏的ASP.NET DLL在第一次使用后从IIS服务器请求相应页面触发DLL的时间?
出于性能原因(等等),ASP.NET DLL在第一次需要时加载并保持加载状态。

您可以使用Internet信息服务卸载(或更改加载的方式)。 applet(应用程序保护和卸载)

Wim

" z。 F"。 <滋** @ info-scopeREMSPAM.co.il>在消息新闻中写道:ut ************** @ TK2MSFTNGP09.phx.gbl ...


我有一个ASP.NET项目那是在使用(类库项目)VB.NET DLL。由于某些原因在Web服务器上运行一些页面并尝试编译类库DLL之后,它无法编译,因为DLL在使用(以及PDB),w3wp.exe进程是锁定DLL的进程(与Sysinternals - Process Explorer一起查看)。
这是一个很大的问题。我需要重置IIS以释放DLL!

1.为什么w3wp.exe进程锁定类库dll而不是锁定asp.net DLL?
2什么将在生产环境中,如果我必须停止Web服务器以替换DLL,这是不可接受的。
3.使用asp-dot-net DLL我只需要替换DLL和web服务器已更新。现在有了共享的类库项目,我应该有更多的问题吗?

请帮忙。紧急。

TIA,z。




Hi,

i have an ASP.NET project that is using a (Class Library Project) VB.NET DLL.
for some reason after running some pages on the web server, and trying to compile the Class Library DLL, it can''t compile because the DLL is in use (and the PDB too), and the w3wp.exe process is the process locking the DLL (as viewed with Sysinternals - Process Explorer).
this is a huge problem. i need to do IIS reset in order to free the DLL!

1. why is the w3wp.exe process is locking a class library dll and not locking the asp.net DLL?
2. what will be in production environment, if i have to stop the web server in order to replace the DLL, it is unacceptable.
3. with asp-dot-net DLLs i only have to replace the DLL and the web server is updated. now with shared Class Library project I should have more problems?
please help it''s urgent.

TIA, z.

解决方案

I assume you mean that the codebehind ASP.NET DLL is in use after the first time the DLL is triggered by requested the corresponding page from the IIS server ?
For performance reasons (amongst others), an ASP.NET DLL gets loaded the first time it is needed and it stays loaded.

You can unload (or change the way the loading is done) by using the "Internet Information Services" applet ("Application Protection" and "Unload")

Wim
"z. f." <zi**@info-scopeREMSPAM.co.il> wrote in message news:ut**************@TK2MSFTNGP09.phx.gbl...
Hi,

i have an ASP.NET project that is using a (Class Library Project) VB.NET DLL.
for some reason after running some pages on the web server, and trying to compile the Class Library DLL, it can''t compile because the DLL is in use (and the PDB too), and the w3wp.exe process is the process locking the DLL (as viewed with Sysinternals - Process Explorer).
this is a huge problem. i need to do IIS reset in order to free the DLL!

1. why is the w3wp.exe process is locking a class library dll and not locking the asp.net DLL?
2. what will be in production environment, if i have to stop the web server in order to replace the DLL, it is unacceptable.
3. with asp-dot-net DLLs i only have to replace the DLL and the web server is updated. now with shared Class Library project I should have more problems?
please help it''s urgent.

TIA, z.


i''m sorry to tell you that your response is not accurate.
first the IIS is not locking my aspnet DLL. i can replace it any time even if a minute ago i run a page that is using this DLL.
the IIS is locking a regular VB.NET DLL that is referenced and used by my aspnet DLL.
lets say i have a vb.net web application called mywebapp and is compiled to mywebapp.dll
and mywebapp is using a dll that is written as a class library project and is called util.dll
all projects are located on a development server (win2003) called devserver.

i use my browser to tun http://devserver/mywebapp/homepage.aspx
homepage.aspx codebehind is compiled into the mywebapp.dll and is using util.dll
if i make changes to util.dll project and want to compile it now, the dll is in use and can''t be build again.
if i make changes to my homepage.aspx codebehind and compile it to mywebapp.dll - there is no problem.
this behavior is unaccepted and it is urgent for me to solve this.


"wl" <nospam@nospam> wrote in message news:OY**************@TK2MSFTNGP09.phx.gbl...
I assume you mean that the codebehind ASP.NET DLL is in use after the first time the DLL is triggered by requested the corresponding page from the IIS server ?
For performance reasons (amongst others), an ASP.NET DLL gets loaded the first time it is needed and it stays loaded.

You can unload (or change the way the loading is done) by using the "Internet Information Services" applet ("Application Protection" and "Unload")

Wim
"z. f." <zi**@info-scopeREMSPAM.co.il> wrote in message news:ut**************@TK2MSFTNGP09.phx.gbl...
Hi,

i have an ASP.NET project that is using a (Class Library Project) VB.NET DLL.
for some reason after running some pages on the web server, and trying to compile the Class Library DLL, it can''t compile because the DLL is in use (and the PDB too), and the w3wp.exe process is the process locking the DLL (as viewed with Sysinternals - Process Explorer).
this is a huge problem. i need to do IIS reset in order to free the DLL!

1. why is the w3wp.exe process is locking a class library dll and not locking the asp.net DLL?
2. what will be in production environment, if i have to stop the web server in order to replace the DLL, it is unacceptable.
3. with asp-dot-net DLLs i only have to replace the DLL and the web server is updated. now with shared Class Library project I should have more problems?
please help it''s urgent.

TIA, z.



I''m assuming your not using the GAC, right?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 23 Nov 2004 15:18:41 +0200, "z. f."
<zi**@info-scopeREMSPAM.co.il> wrote:

i''m sorry to tell you that your response is not accurate.
first the IIS is not locking my aspnet DLL. i can replace it any time even if a minute ago i run a page that is using this DLL.
the IIS is locking a regular VB.NET DLL that is referenced and used by my aspnet DLL.
lets say i have a vb.net web application called mywebapp and is compiled to mywebapp.dll
and mywebapp is using a dll that is written as a class library project and is called util.dll
all projects are located on a development server (win2003) called devserver.

i use my browser to tun http://devserver/mywebapp/homepage.aspx
homepage.aspx codebehind is compiled into the mywebapp.dll and is using util.dll
if i make changes to util.dll project and want to compile it now, the dll is in use and can''t be build again.
if i make changes to my homepage.aspx codebehind and compile it to mywebapp.dll - there is no problem.
this behavior is unaccepted and it is urgent for me to solve this.


"wl" <nospam@nospam> wrote in message news:OY**************@TK2MSFTNGP09.phx.gbl...
I assume you mean that the codebehind ASP.NET DLL is in use after the first time the DLL is triggered by requested the corresponding page from the IIS server ?
For performance reasons (amongst others), an ASP.NET DLL gets loaded the first time it is needed and it stays loaded.

You can unload (or change the way the loading is done) by using the "Internet Information Services" applet ("Application Protection" and "Unload")

Wim
"z. f." <zi**@info-scopeREMSPAM.co.il> wrote in message news:ut**************@TK2MSFTNGP09.phx.gbl...
Hi,

i have an ASP.NET project that is using a (Class Library Project) VB.NET DLL.
for some reason after running some pages on the web server, and trying to compile the Class Library DLL, it can''t compile because the DLL is in use (and the PDB too), and the w3wp.exe process is the process locking the DLL (as viewed with Sysinternals - Process Explorer).
this is a huge problem. i need to do IIS reset in order to free the DLL!

1. why is the w3wp.exe process is locking a class library dll and not locking the asp.net DLL?
2. what will be in production environment, if i have to stop the web server in order to replace the DLL, it is unacceptable.
3. with asp-dot-net DLLs i only have to replace the DLL and the web server is updated. now with shared Class Library project I should have more problems?
please help it''s urgent.

TIA, z.




这篇关于w3wp.exe锁定DLL和PDB文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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