This is a multi-part message in MIME format.

------=_NextPart_000_063D_01C4D14E.2A5CDE00
Content-Type: text/plain;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

Hi,=20

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.

------=_NextPart_000_063D_01C4D14E.2A5CDE00
Content-Type: text/html;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1255">
<META content=3D"MSHTML 6.00.3790.218" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i have an ASP.NET project that is using =
a (Class=20
Library Project) VB.NET DLL.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>for some reason after running some =
pages on the web=20
server, and trying to compile the Class Library DLL, it can't compile =
because=20
the DLL is in use (and the PDB too), and the w3wp.exe process is the =
process=20
locking the DLL (as viewed with Sysinternals - Process =
Explorer).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>this is a huge problem. i need to do =
IIS reset in=20
order to free the DLL!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1. why is the w3wp.exe process is =
locking a class=20
library dll and not locking the asp.net DLL?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2. what will be in production =
environment, if i=20
have to stop the web server in order to replace the DLL, it is=20
unacceptable.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>3. with asp-dot-net DLLs i only have to =
replace the=20
DLL and the web server is updated. now with shared Class Library project =
I=20
should have more problems?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>please help it's urgent.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>TIA, z.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_063D_01C4D14E.2A5CDE00--

Re: w3wp.exe locking DLL and PDB files. by wl

wl
Tue Nov 23 05:37:54 CST 2004

This is a multi-part message in MIME format.

------=_NextPart_000_0012_01C4D159.41C7E390
Content-Type: text/plain;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

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." <zigi@info-scopeREMSPAM.co.il> wrote in message =
news:utsg31T0EHA.1524@TK2MSFTNGP09.phx.gbl...
Hi,=20

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.

------=_NextPart_000_0012_01C4D159.41C7E390
Content-Type: text/html;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1255">
<META content=3D"MSHTML 6.00.2900.2523" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>I assume you mean that the codebehind ASP.NET DLL is =
in use=20
after the first time the DLL is triggered by requested the corresponding =
page=20
from the IIS server ?</FONT></DIV>
<DIV><FONT size=3D2>For performance reasons (amongst others), an ASP.NET =
DLL gets=20
loaded the first time it is needed and it stays loaded.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>You can unload (or change the way the loading is =
done) by=20
using the "Internet Information Services" applet ("Application =
Protection" and=20
"Unload")</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Wim</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"z. f." &lt;<A=20
=
href=3D"mailto:zigi@info-scopeREMSPAM.co.il">zigi@info-scopeREMSPAM.co.il=
</A>&gt;=20
wrote in message <A=20
=
href=3D"news:utsg31T0EHA.1524@TK2MSFTNGP09.phx.gbl">news:utsg31T0EHA.1524=
@TK2MSFTNGP09.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i have an ASP.NET project that is =
using a (Class=20
Library Project) VB.NET DLL.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>for some reason after running some =
pages on the=20
web server, and trying to compile the Class Library DLL, it can't =
compile=20
because the DLL is in use (and the PDB too), and the w3wp.exe process =
is the=20
process locking the DLL (as viewed with Sysinternals - Process=20
Explorer).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>this is a huge problem. i need to do =
IIS reset in=20
order to free the DLL!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1. why is the w3wp.exe process is =
locking a class=20
library dll and not locking the asp.net DLL?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2. what will be in production =
environment, if i=20
have to stop the web server in order to replace the DLL, it is=20
unacceptable.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>3. with asp-dot-net DLLs i only have =
to replace=20
the DLL and the web server is updated. now with shared Class Library =
project I=20
should have more problems?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>please help it's urgent.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>TIA, z.</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2></FONT>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0012_01C4D159.41C7E390--


Re: w3wp.exe locking DLL and PDB files. by z

z
Tue Nov 23 07:18:41 CST 2004

This is a multi-part message in MIME format.

------=_NextPart_000_066C_01C4D16F.B7205120
Content-Type: text/plain;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

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:OYWBjDV0EHA.2688@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." <zigi@info-scopeREMSPAM.co.il> wrote in message =
news:utsg31T0EHA.1524@TK2MSFTNGP09.phx.gbl...
Hi,=20

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.

------=_NextPart_000_066C_01C4D16F.B7205120
Content-Type: text/html;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1255">
<META content=3D"MSHTML 6.00.3790.218" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>i'm sorry to tell you that your =
response is not=20
accurate.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>first the IIS is not locking my aspnet =
DLL. i can=20
replace it any time even if a minute ago i run a page that is using this =

DLL.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the IIS is locking a regular VB.NET DLL =
that is=20
referenced and used by my aspnet DLL.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>lets say i have a vb.net web =
application called=20
mywebapp and is compiled to mywebapp.dll</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and mywebapp is using a dll that is =
written as a=20
class library project and is called util.dll</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>all projects are located on a =
development server=20
(win2003) called devserver.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i use my browser to tun <A=20
href=3D"http://devserver/mywebapp/homepage.aspx">http://devserver/mywebap=
p/homepage.aspx</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>homepage.aspx codebehind is compiled =
into the=20
mywebapp.dll and is using util.dll</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>if i make changes to util.dll project =
and want to=20
compile it now, the dll is in use and can't be build again.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>if i make changes to my homepage.aspx =
codebehind=20
and compile it to mywebapp.dll - there is no problem.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>this behavior is unaccepted and it is =
urgent for me=20
to solve this.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>"wl" &lt;<A href=3D"mailto:nospam@nospam">nospam@nospam</A>&gt; =
wrote in=20
message <A=20
href=3D"news:OYWBjDV0EHA.2688@TK2MSFTNGP09.phx.gbl">news:OYWBjDV0EHA.2688=
@TK2MSFTNGP09.phx.gbl</A>...</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><FONT size=3D2>I assume you mean that the codebehind ASP.NET DLL =
is in use=20
after the first time the DLL is triggered by requested the =
corresponding page=20
from the IIS server ?</FONT></DIV>
<DIV><FONT size=3D2>For performance reasons (amongst others), an =
ASP.NET DLL=20
gets loaded the first time it is needed and it stays =
loaded.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>You can unload (or change the way the loading is =
done) by=20
using the "Internet Information Services" applet ("Application =
Protection" and=20
"Unload")</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Wim</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"z. f." &lt;<A=20
=
href=3D"mailto:zigi@info-scopeREMSPAM.co.il">zigi@info-scopeREMSPAM.co.il=
</A>&gt;=20
wrote in message <A=20
=
href=3D"news:utsg31T0EHA.1524@TK2MSFTNGP09.phx.gbl">news:utsg31T0EHA.1524=
@TK2MSFTNGP09.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i have an ASP.NET project that is =
using a=20
(Class Library Project) VB.NET DLL.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>for some reason after running some =
pages on the=20
web server, and trying to compile the Class Library DLL, it can't =
compile=20
because the DLL is in use (and the PDB too), and the w3wp.exe =
process is the=20
process locking the DLL (as viewed with Sysinternals - Process=20
Explorer).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>this is a huge problem. i need to =
do IIS reset=20
in order to free the DLL!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1. why is the w3wp.exe process is =
locking a=20
class library dll and not locking the asp.net DLL?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2. what will be in production =
environment, if i=20
have to stop the web server in order to replace the DLL, it is=20
unacceptable.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>3. with asp-dot-net DLLs i only =
have to replace=20
the DLL and the web server is updated. now with shared Class Library =
project=20
I should have more problems?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>please help it's =
urgent.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>TIA, z.</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2></FONT>&nbsp;</DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_066C_01C4D16F.B7205120--


Re: w3wp.exe locking DLL and PDB files. by Scott

Scott
Tue Nov 23 08:25:52 CST 2004


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."
<zigi@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:OYWBjDV0EHA.2688@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." <zigi@info-scopeREMSPAM.co.il> wrote in message news:utsg31T0EHA.1524@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.


Re: w3wp.exe locking DLL and PDB files. by z

z
Tue Nov 23 08:49:27 CST 2004

This is a multi-part message in MIME format.

------=_NextPart_000_06A0_01C4D17C.65237930
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

i don't use the GAC, but in order to solve the problem of DLL copies all =
around i use a codebase hint in the web.config of my web application. in =
order to do this i assign a strong name to the DLL and a fix version =
number.

should this cause any problem with locking the DLL differently from the =
default way?


"Scott Allen" <bitmask@[nospam].fred.net> wrote in message =
news:42i6q091j66ksfbqkpqrejn3h11o85npri@4ax.com...

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."
<zigi@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:OYWBjDV0EHA.2688@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." <zigi@info-scopeREMSPAM.co.il> wrote in message =
news:utsg31T0EHA.1524@TK2MSFTNGP09.phx.gbl...
> Hi,=20
>
> 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.

------=_NextPart_000_06A0_01C4D17C.65237930
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.3790.218" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>i don't use the GAC, but in order to =
solve the=20
problem of DLL copies all around i use a codebase hint in the web.config =
of my=20
web application. in order to do this i assign a strong name to the DLL =
and a fix=20
version number.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>should this cause any problem with =
locking the DLL=20
differently from the default way?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Scott Allen" &lt;<A=20
=
href=3D"mailto:bitmask@[nospam].fred.net">bitmask@[nospam].fred.net</A>&g=
t;=20
wrote in message <A=20
=
href=3D"news:42i6q091j66ksfbqkpqrejn3h11o85npri@4ax.com">news:42i6q091j66=
ksfbqkpqrejn3h11o85npri@4ax.com</A>...</DIV><BR>I'm=20
assuming your not using the GAC, right?<BR><BR>--<BR>Scott<BR><A=20
=
href=3D"http://www.OdeToCode.com/blogs/scott/">http://www.OdeToCode.com/b=
logs/scott/</A><BR><BR>On=20
Tue, 23 Nov 2004 15:18:41 +0200, "z. f."<BR>&lt;<A=20
=
href=3D"mailto:zigi@info-scopeREMSPAM.co.il">zigi@info-scopeREMSPAM.co.il=
</A>&gt;=20
wrote:<BR><BR>&gt;i'm sorry to tell you that your response is not=20
accurate.<BR>&gt;first the IIS is not locking my aspnet DLL. i can =
replace it=20
any time even if a minute ago i run a page that is using this =
DLL.<BR>&gt;the=20
IIS is locking a regular VB.NET DLL that is referenced and used by my =
aspnet=20
DLL.<BR>&gt;lets say i have a vb.net web application called mywebapp =
and is=20
compiled to mywebapp.dll<BR>&gt;and mywebapp is using a dll that is =
written as=20
a class library project and is called util.dll<BR>&gt;all projects are =
located=20
on a development server (win2003) called devserver.<BR>&gt;<BR>&gt;i =
use my=20
browser to tun <A=20
=
href=3D"http://devserver/mywebapp/homepage.aspx">http://devserver/mywebap=
p/homepage.aspx</A><BR>&gt;homepage.aspx=20
codebehind is compiled into the mywebapp.dll and is using =
util.dll<BR>&gt;if i=20
make changes to util.dll project and want to compile it now, the dll =
is in use=20
and can't be build again.<BR>&gt;if i make changes to my homepage.aspx =

codebehind and compile it to mywebapp.dll - there is no =
problem.<BR>&gt;this=20
behavior is unaccepted and it is urgent for me to solve=20
this.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;"wl" &lt;<A=20
href=3D"mailto:nospam@nospam">nospam@nospam</A>&gt; wrote in message =
<A=20
=
href=3D"news:OYWBjDV0EHA.2688@TK2MSFTNGP09.phx.gbl">news:OYWBjDV0EHA.2688=
@TK2MSFTNGP09.phx.gbl</A>...<BR>&gt;&nbsp;=20
I assume you mean that the codebehind ASP.NET DLL is in use after the =
first=20
time the DLL is triggered by requested the corresponding page from the =
IIS=20
server ?<BR>&gt;&nbsp; For performance reasons (amongst others), an =
ASP.NET=20
DLL gets loaded the first time it is needed and it stays=20
loaded.<BR>&gt;<BR>&gt;&nbsp; You can unload (or change the way the =
loading is=20
done) by using the "Internet Information Services" applet =
("Application=20
Protection" and "Unload")<BR>&gt;<BR>&gt;&nbsp;=20
Wim<BR>&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp; "z. f." &lt;<A=20
=
href=3D"mailto:zigi@info-scopeREMSPAM.co.il">zigi@info-scopeREMSPAM.co.il=
</A>&gt;=20
wrote in message <A=20
=
href=3D"news:utsg31T0EHA.1524@TK2MSFTNGP09.phx.gbl">news:utsg31T0EHA.1524=
@TK2MSFTNGP09.phx.gbl</A>...<BR>&gt;&nbsp;&nbsp;&nbsp;=20
Hi, <BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp; i have an ASP.NET project that =
is using=20
a (Class Library Project) VB.NET DLL.<BR>&gt;&nbsp;&nbsp;&nbsp; for =
some=20
reason after running some pages on the web server, and trying to =
compile the=20
Class Library DLL, it can't compile because the DLL is in use (and the =
PDB=20
too), and the w3wp.exe process is the process locking the DLL (as =
viewed with=20
Sysinternals - Process Explorer).<BR>&gt;&nbsp;&nbsp;&nbsp; this is a =
huge=20
problem. i need to do IIS reset in order to free the=20
DLL!<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp; 1. why is the w3wp.exe process =
is=20
locking a class library dll and not locking the asp.net=20
DLL?<BR>&gt;&nbsp;&nbsp;&nbsp; 2. what will be in production =
environment, if i=20
have to stop the web server in order to replace the DLL, it is=20
unacceptable.<BR>&gt;&nbsp;&nbsp;&nbsp; 3. with asp-dot-net DLLs i =
only have=20
to replace the DLL and the web server is updated. now with shared =
Class=20
Library project I should have more=20
problems?<BR>&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp; please help it's=20
urgent.<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp; TIA, =
z.<BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_06A0_01C4D17C.65237930--


Re: w3wp.exe locking DLL and PDB files. by Scott

Scott
Tue Nov 23 09:27:03 CST 2004

Ah, yes. I believe ASP.NET will only shadow copy assemblies in the bin
directory. All other assebmlies are loaded into the process from the
original location and would be locked.

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

On Tue, 23 Nov 2004 16:49:27 +0200, "z. f."
<zigi@info-scopeREMSPAM.co.il> wrote:

>i don't use the GAC, but in order to solve the problem of DLL copies all around i use a codebase hint in the web.config of my web application. in order to do this i assign a strong name to the DLL and a fix version number.
>
>should this cause any problem with locking the DLL differently from the default way?
>
>
> "Scott Allen" <bitmask@[nospam].fred.net> wrote in message news:42i6q091j66ksfbqkpqrejn3h11o85npri@4ax.com...
>
> I'm assuming your not using the GAC, right?
>
> --
> Scott
> http://www.OdeToCode.com/blogs/scott/
>


Re: w3wp.exe locking DLL and PDB files. by z

z
Tue Nov 23 09:52:07 CST 2004

This is a multi-part message in MIME format.

------=_NextPart_000_06CD_01C4D185.2630E290
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

so if i put it in the GAC will it also be locked?
or is there an attribute in the configuration near the codebase hint to =
ask the framework to "Shadow" copy the DLL?


"Scott Allen" <bitmask@[nospam].fred.net> wrote in message =
news:rel6q0hcrpdequrbg52i2ilaitv43k2fbv@4ax.com...
Ah, yes. I believe ASP.NET will only shadow copy assemblies in the bin
directory. All other assebmlies are loaded into the process from the
original location and would be locked.=20

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

On Tue, 23 Nov 2004 16:49:27 +0200, "z. f."
<zigi@info-scopeREMSPAM.co.il> wrote:

>i don't use the GAC, but in order to solve the problem of DLL copies =
all around i use a codebase hint in the web.config of my web =
application. in order to do this i assign a strong name to the DLL and a =
fix version number.
>
>should this cause any problem with locking the DLL differently from =
the default way?
>
>
> "Scott Allen" <bitmask@[nospam].fred.net> wrote in message =
news:42i6q091j66ksfbqkpqrejn3h11o85npri@4ax.com...
>
> I'm assuming your not using the GAC, right?
>
> --
> Scott
> http://www.OdeToCode.com/blogs/scott/
>

------=_NextPart_000_06CD_01C4D185.2630E290
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.3790.218" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>so if i put it in the GAC will it also =
be=20
locked?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>or is there an attribute in the =
configuration near=20
the codebase hint to ask the framework to "Shadow" copy the =
DLL?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Scott Allen" &lt;<A=20
=
href=3D"mailto:bitmask@[nospam].fred.net">bitmask@[nospam].fred.net</A>&g=
t;=20
wrote in message <A=20
=
href=3D"news:rel6q0hcrpdequrbg52i2ilaitv43k2fbv@4ax.com">news:rel6q0hcrpd=
equrbg52i2ilaitv43k2fbv@4ax.com</A>...</DIV>Ah,=20
yes. I believe ASP.NET will only shadow copy assemblies in the=20
bin<BR>directory. All other assebmlies are loaded into the process =
from=20
the<BR>original location and would be locked. =
<BR><BR>--<BR>Scott<BR><A=20
=
href=3D"http://www.OdeToCode.com/blogs/scott/">http://www.OdeToCode.com/b=
logs/scott/</A><BR><BR>On=20
Tue, 23 Nov 2004 16:49:27 +0200, "z. f."<BR>&lt;<A=20
=
href=3D"mailto:zigi@info-scopeREMSPAM.co.il">zigi@info-scopeREMSPAM.co.il=
</A>&gt;=20
wrote:<BR><BR>&gt;i don't use the GAC, but in order to solve the =
problem of=20
DLL copies all around i use a codebase hint in the web.config of my =
web=20
application. in order to do this i assign a strong name to the DLL and =
a fix=20
version number.<BR>&gt;<BR>&gt;should this cause any problem with =
locking the=20
DLL differently from the default way?<BR>&gt;<BR>&gt;<BR>&gt;&nbsp; =
"Scott=20
Allen" &lt;<A=20
=
href=3D"mailto:bitmask@[nospam].fred.net">bitmask@[nospam].fred.net</A>&g=
t;=20
wrote in message <A=20
=
href=3D"news:42i6q091j66ksfbqkpqrejn3h11o85npri@4ax.com">news:42i6q091j66=
ksfbqkpqrejn3h11o85npri@4ax.com</A>...<BR>&gt;<BR>&gt;&nbsp;=20
I'm assuming your not using the GAC, right?<BR>&gt;<BR>&gt;&nbsp;=20
--<BR>&gt;&nbsp; Scott<BR>&gt;&nbsp; <A=20
=
href=3D"http://www.OdeToCode.com/blogs/scott/">http://www.OdeToCode.com/b=
logs/scott/</A><BR>&gt;<BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_06CD_01C4D185.2630E290--


Re: w3wp.exe locking DLL and PDB files. by Scott

Scott
Tue Nov 23 10:53:30 CST 2004

I have not tried this, but you might be able to modify the
ShadowCopyDirectories property of the appdomain to include your custom
path, ie:

AppDomain.CurrentDomain.SetShadowCopyPath(
AppDomain.CurrentDomain.SetupInformation.ShadowCopyDirectories +
";" +
"[CustomPath]"
);


Again, I have not tried this, but let me know if you do or do not get
it working, I might investigate some more this evening.

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

On Tue, 23 Nov 2004 17:52:07 +0200, "z. f."
<zigi@info-scopeREMSPAM.co.il> wrote:

>so if i put it in the GAC will it also be locked?
>or is there an attribute in the configuration near the codebase hint to ask the framework to "Shadow" copy the DLL?
>
>


Re: w3wp.exe locking DLL and PDB files. by Scott

Scott
Tue Nov 23 12:00:53 CST 2004

Of course this would have to happen before the web app tries to load
the assembly....

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

On Tue, 23 Nov 2004 11:53:30 -0500, Scott Allen
<bitmask@[nospam].fred.net> wrote:

>I have not tried this, but you might be able to modify the
>ShadowCopyDirectories property of the appdomain to include your custom
>path, ie:
>
>AppDomain.CurrentDomain.SetShadowCopyPath(
> AppDomain.CurrentDomain.SetupInformation.ShadowCopyDirectories +
> ";" +
> "[CustomPath]"
> );
>
>
>Again, I have not tried this, but let me know if you do or do not get
>it working, I might investigate some more this evening.


Re: w3wp.exe locking DLL and PDB files. by z

z
Wed Nov 24 02:51:08 CST 2004

This is a multi-part message in MIME format.

------=_NextPart_000_070E_01C4D213.81561350
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

thanx, you just made my day!

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message =
news:jlu6q0l59a8l4itucrtti4r011k8bpm97l@4ax.com...
Of course this would have to happen before the web app tries to load
the assembly....

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

On Tue, 23 Nov 2004 11:53:30 -0500, Scott Allen
<bitmask@[nospam].fred.net> wrote:

>I have not tried this, but you might be able to modify the
>ShadowCopyDirectories property of the appdomain to include your =
custom
>path, ie:
>
>AppDomain.CurrentDomain.SetShadowCopyPath(
> AppDomain.CurrentDomain.SetupInformation.ShadowCopyDirectories =
+
> ";" +=20
> "[CustomPath]"
> );=20
>
>
>Again, I have not tried this, but let me know if you do or do not get
>it working, I might investigate some more this evening.

------=_NextPart_000_070E_01C4D213.81561350
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.3790.218" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>thanx, you just made my day!</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Scott Allen" &lt;<A=20
=
href=3D"mailto:bitmask@[nospam].fred.net">bitmask@[nospam].fred.net</A>&g=
t;=20
wrote in message <A=20
=
href=3D"news:jlu6q0l59a8l4itucrtti4r011k8bpm97l@4ax.com">news:jlu6q0l59a8=
l4itucrtti4r011k8bpm97l@4ax.com</A>...</DIV>Of=20
course this would have to happen before the web app tries to =
load<BR>the=20
assembly....<BR><BR>--<BR>Scott<BR><A=20
=
href=3D"http://www.OdeToCode.com/blogs/scott/">http://www.OdeToCode.com/b=
logs/scott/</A><BR><BR>On=20
Tue, 23 Nov 2004 11:53:30 -0500, Scott Allen<BR>&lt;<A=20
=
href=3D"mailto:bitmask@[nospam].fred.net">bitmask@[nospam].fred.net</A>&g=
t;=20
wrote:<BR><BR>&gt;I have not tried this, but you might be able to =
modify=20
the<BR>&gt;ShadowCopyDirectories property of the appdomain to include =
your=20
custom<BR>&gt;path,=20
=
ie:<BR>&gt;<BR>&gt;AppDomain.CurrentDomain.SetShadowCopyPath(<BR>&gt;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;=20
AppDomain.CurrentDomain.SetupInformation.ShadowCopyDirectories=20
+<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ";" +=20
<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
"[CustomPath]"<BR>&gt;&nbsp;&nbsp;&nbsp; ); =
<BR>&gt;<BR>&gt;<BR>&gt;Again, I=20
have not tried this, but let me know if you do or do not get<BR>&gt;it =

working, I might investigate some more this=20
evening.<BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_070E_01C4D213.81561350--


Re: w3wp.exe locking DLL and PDB files. by z

z
Sun Nov 28 03:40:53 CST 2004

This is a multi-part message in MIME format.

------=_NextPart_000_0011_01C4D53F.1DCF7E50
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

well,=20
iti works fine most of the time, but i still sometimes have to recycle =
the IIS because the DLL is in use, and i just can't figure out where or =
why it does that.




"Scott Allen" <bitmask@[nospam].fred.net> wrote in message =
news:jlu6q0l59a8l4itucrtti4r011k8bpm97l@4ax.com...
Of course this would have to happen before the web app tries to load
the assembly....

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

On Tue, 23 Nov 2004 11:53:30 -0500, Scott Allen
<bitmask@[nospam].fred.net> wrote:

>I have not tried this, but you might be able to modify the
>ShadowCopyDirectories property of the appdomain to include your =
custom
>path, ie:
>
>AppDomain.CurrentDomain.SetShadowCopyPath(
> AppDomain.CurrentDomain.SetupInformation.ShadowCopyDirectories =
+
> ";" +=20
> "[CustomPath]"
> );=20
>
>
>Again, I have not tried this, but let me know if you do or do not get
>it working, I might investigate some more this evening.

------=_NextPart_000_0011_01C4D53F.1DCF7E50
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.3790.218" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>well, </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>iti works fine most of the time, but i =
still=20
sometimes have to recycle the IIS because the DLL is in use, and i just =
can't=20
figure out where or why it does that.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Scott Allen" &lt;<A=20
=
href=3D"mailto:bitmask@[nospam].fred.net">bitmask@[nospam].fred.net</A>&g=
t;=20
wrote in message <A=20
=
href=3D"news:jlu6q0l59a8l4itucrtti4r011k8bpm97l@4ax.com">news:jlu6q0l59a8=
l4itucrtti4r011k8bpm97l@4ax.com</A>...</DIV>Of=20
course this would have to happen before the web app tries to =
load<BR>the=20
assembly....<BR><BR>--<BR>Scott<BR><A=20
=
href=3D"http://www.OdeToCode.com/blogs/scott/">http://www.OdeToCode.com/b=
logs/scott/</A><BR><BR>On=20
Tue, 23 Nov 2004 11:53:30 -0500, Scott Allen<BR>&lt;<A=20
=
href=3D"mailto:bitmask@[nospam].fred.net">bitmask@[nospam].fred.net</A>&g=
t;=20
wrote:<BR><BR>&gt;I have not tried this, but you might be able to =
modify=20
the<BR>&gt;ShadowCopyDirectories property of the appdomain to include =
your=20
custom<BR>&gt;path,=20
=
ie:<BR>&gt;<BR>&gt;AppDomain.CurrentDomain.SetShadowCopyPath(<BR>&gt;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;=20
AppDomain.CurrentDomain.SetupInformation.ShadowCopyDirectories=20
+<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ";" +=20
<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
"[CustomPath]"<BR>&gt;&nbsp;&nbsp;&nbsp; ); =
<BR>&gt;<BR>&gt;<BR>&gt;Again, I=20
have not tried this, but let me know if you do or do not get<BR>&gt;it =

working, I might investigate some more this=20
evening.<BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0011_01C4D53F.1DCF7E50--


Re: w3wp.exe locking DLL and PDB files. by Scott

Scott
Sun Nov 28 09:03:54 CST 2004

Interesting. Using FileMon
(http://www.sysinternals.com/ntw2k/source/filemon.shtml)
you could see the exact instance when the .dll is touched. Perhaps it
gets loaded before the shadow copy path is set.

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


On Sun, 28 Nov 2004 11:40:53 +0200, "z. f."
<zigi@info-scopeREMSPAM.co.il> wrote:

>well,
>iti works fine most of the time, but i still sometimes have to recycle the IIS because the DLL is in use, and i just can't figure out where or why it does that.
>
>
>
>
> "Scott Allen" <bitmask@[nospam].fred.net> wrote in message news:jlu6q0l59a8l4itucrtti4r011k8bpm97l@4ax.com...
> Of course this would have to happen before the web app tries to load
> the assembly....
>
> --
> Scott
> http://www.OdeToCode.com/blogs/scott/
>
> On Tue, 23 Nov 2004 11:53:30 -0500, Scott Allen
> <bitmask@[nospam].fred.net> wrote:
>
> >I have not tried this, but you might be able to modify the
> >ShadowCopyDirectories property of the appdomain to include your custom
> >path, ie:
> >
> >AppDomain.CurrentDomain.SetShadowCopyPath(
> > AppDomain.CurrentDomain.SetupInformation.ShadowCopyDirectories +
> > ";" +
> > "[CustomPath]"
> > );
> >
> >
> >Again, I have not tried this, but let me know if you do or do not get
> >it working, I might investigate some more this evening.


Re: w3wp.exe locking DLL and PDB files. by z

z
Sun Nov 28 10:11:25 CST 2004

This is a multi-part message in MIME format.

------=_NextPart_000_000C_01C4D575.AC8D0730
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

i think it was because of a copy of the DLL in the other project bin =
directory. i removed it and now it seems to work fine.

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message =
news:r1qjq0tsb13v6tfb4j05f6qinipn34jl9u@4ax.com...
Interesting. Using FileMon
(http://www.sysinternals.com/ntw2k/source/filemon.shtml)
you could see the exact instance when the .dll is touched. Perhaps it
gets loaded before the shadow copy path is set.

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


On Sun, 28 Nov 2004 11:40:53 +0200, "z. f."
<zigi@info-scopeREMSPAM.co.il> wrote:

>well,=20
>iti works fine most of the time, but i still sometimes have to =
recycle the IIS because the DLL is in use, and i just can't figure out =
where or why it does that.
>
>
>
>
> "Scott Allen" <bitmask@[nospam].fred.net> wrote in message =
news:jlu6q0l59a8l4itucrtti4r011k8bpm97l@4ax.com...
> Of course this would have to happen before the web app tries to =
load
> the assembly....
>
> --
> Scott
> http://www.OdeToCode.com/blogs/scott/
>
> On Tue, 23 Nov 2004 11:53:30 -0500, Scott Allen
> <bitmask@[nospam].fred.net> wrote:
>
> >I have not tried this, but you might be able to modify the
> >ShadowCopyDirectories property of the appdomain to include your =
custom
> >path, ie:
> >
> >AppDomain.CurrentDomain.SetShadowCopyPath(
> > =
AppDomain.CurrentDomain.SetupInformation.ShadowCopyDirectories +
> > ";" +=20
> > "[CustomPath]"
> > );=20
> >
> >
> >Again, I have not tried this, but let me know if you do or do not =
get
> >it working, I might investigate some more this evening.

------=_NextPart_000_000C_01C4D575.AC8D0730
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.3790.218" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>i think it was because of a copy of the =
DLL in the=20
other project bin directory. i removed it and now it seems to work=20
fine.</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Scott Allen" &lt;<A=20
=
href=3D"mailto:bitmask@[nospam].fred.net">bitmask@[nospam].fred.net</A>&g=
t;=20
wrote in message <A=20
=
href=3D"news:r1qjq0tsb13v6tfb4j05f6qinipn34jl9u@4ax.com">news:r1qjq0tsb13=
v6tfb4j05f6qinipn34jl9u@4ax.com</A>...</DIV>Interesting.=20
Using FileMon<BR>(<A=20
=
href=3D"http://www.sysinternals.com/ntw2k/source/filemon.shtml">http://ww=
w.sysinternals.com/ntw2k/source/filemon.shtml</A>)<BR>you=20
could see the exact instance when the .dll is touched. Perhaps =
it<BR>gets=20
loaded before the shadow copy path is set.<BR><BR>--<BR>Scott<BR><A=20
=
href=3D"http://www.OdeToCode.com/blogs/scott/">http://www.OdeToCode.com/b=
logs/scott/</A><BR><BR><BR>On=20
Sun, 28 Nov 2004 11:40:53 +0200, "z. f."<BR>&lt;<A=20
=
href=3D"mailto:zigi@info-scopeREMSPAM.co.il">zigi@info-scopeREMSPAM.co.il=
</A>&gt;=20
wrote:<BR><BR>&gt;well, <BR>&gt;iti works fine most of the time, but i =
still=20
sometimes have to recycle the IIS because the DLL is in use, and i =
just can't=20
figure out where or why it does=20
that.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;&nbsp; "Scott Allen" =
&lt;<A=20
=
href=3D"mailto:bitmask@[nospam].fred.net">bitmask@[nospam].fred.net</A>&g=
t;=20
wrote in message <A=20
=
href=3D"news:jlu6q0l59a8l4itucrtti4r011k8bpm97l@4ax.com">news:jlu6q0l59a8=
l4itucrtti4r011k8bpm97l@4ax.com</A>...<BR>&gt;&nbsp;=20
Of course this would have to happen before the web app tries to=20
load<BR>&gt;&nbsp; the assembly....<BR>&gt;<BR>&gt;&nbsp; =
--<BR>&gt;&nbsp;=20
Scott<BR>&gt;&nbsp; <A=20
=
href=3D"http://www.OdeToCode.com/blogs/scott/">http://www.OdeToCode.com/b=
logs/scott/</A><BR>&gt;<BR>&gt;&nbsp;=20
On Tue, 23 Nov 2004 11:53:30 -0500, Scott Allen<BR>&gt;&nbsp; &lt;<A=20
=
href=3D"mailto:bitmask@[nospam].fred.net">bitmask@[nospam].fred.net</A>&g=
t;=20
wrote:<BR>&gt;<BR>&gt;&nbsp; &gt;I have not tried this, but you might =
be able=20
to modify the<BR>&gt;&nbsp; &gt;ShadowCopyDirectories property of the=20
appdomain to include your custom<BR>&gt;&nbsp; &gt;path, =
ie:<BR>&gt;&nbsp;=20
&gt;<BR>&gt;&nbsp;=20
&gt;AppDomain.CurrentDomain.SetShadowCopyPath(<BR>&gt;&nbsp;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
AppDomain.CurrentDomain.SetupInformation.ShadowCopyDirectories =
+<BR>&gt;&nbsp;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ";" + <BR>&gt;&nbsp;=20
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "[CustomPath]"<BR>&gt;&nbsp;=20
&gt;&nbsp;&nbsp;&nbsp; ); <BR>&gt;&nbsp; &gt;<BR>&gt;&nbsp; =
&gt;<BR>&gt;&nbsp;=20
&gt;Again, I have not tried this, but let me know if you do or do not=20
get<BR>&gt;&nbsp; &gt;it working, I might investigate some more this=20
evening.<BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000C_01C4D575.AC8D0730--


Re: w3wp.exe locking DLL and PDB files. by z

z
Tue Nov 30 05:46:34 CST 2004

This is a multi-part message in MIME format.

------=_NextPart_000_00F5_01C4D6E3.01787BD0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

to add note when i call SetShadowCopyPath in me PageLoad event and in =
this event there is also a call to a function in the DLL itself, it will =
not help, the DLL will get loaded to the default location and locked.
in this case i put it in the Page_Init and it works.
probably the framework loads the dll upon entering the method call that =
uses the DLL and not at the point in the code where it's required.


"z. f." <zigi@info-scopeREMSPAM.co.il> wrote in message =
news:#Ie#8TW1EHA.3468@TK2MSFTNGP14.phx.gbl...
i think it was because of a copy of the DLL in the other project bin =
directory. i removed it and now it seems to work fine.

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message =
news:r1qjq0tsb13v6tfb4j05f6qinipn34jl9u@4ax.com...
Interesting. Using FileMon
(http://www.sysinternals.com/ntw2k/source/filemon.shtml)
you could see the exact instance when the .dll is touched. Perhaps =
it
gets loaded before the shadow copy path is set.

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


On Sun, 28 Nov 2004 11:40:53 +0200, "z. f."
<zigi@info-scopeREMSPAM.co.il> wrote:

>well,=20
>iti works fine most of the time, but i still sometimes have to =
recycle the IIS because the DLL is in use, and i just can't figure out =
where or why it does that.
>
>
>
>
> "Scott Allen" <bitmask@[nospam].fred.net> wrote in message =
news:jlu6q0l59a8l4itucrtti4r011k8bpm97l@4ax.com...
> Of course this would have to happen before the web app tries to =
load
> the assembly....
>
> --
> Scott
> http://www.OdeToCode.com/blogs/scott/
>
> On Tue, 23 Nov 2004 11:53:30 -0500, Scott Allen
> <bitmask@[nospam].fred.net> wrote:
>
> >I have not tried this, but you might be able to modify the
> >ShadowCopyDirectories property of the appdomain to include your =
custom
> >path, ie:
> >
> >AppDomain.CurrentDomain.SetShadowCopyPath(
> > =
AppDomain.CurrentDomain.SetupInformation.ShadowCopyDirectories +
> > ";" +=20
> > "[CustomPath]"
> > );=20
> >
> >
> >Again, I have not tried this, but let me know if you do or do =
not get
> >it working, I might investigate some more this evening.

------=_NextPart_000_00F5_01C4D6E3.01787BD0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.3790.218" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>to add note when i call <FONT=20
face=3D"Times New Roman" size=3D3>SetShadowCopyPath in me PageLoad event =
and in this=20
event there is also a call to a function in the DLL itself, it will not =
help,=20
the DLL will get loaded to the default location and =
locked.</FONT></FONT></DIV>
<DIV>in this case i put it in the Page_Init and it works.</DIV>
<DIV>probably the framework loads the dll upon entering the method call =
that=20
uses the DLL and not at the point in the code where it's required.</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"z. f." &lt;<A=20
=
href=3D"mailto:zigi@info-scopeREMSPAM.co.il">zigi@info-scopeREMSPAM.co.il=
</A>&gt;=20
wrote in message <A=20
=
href=3D"news:#Ie#8TW1EHA.3468@TK2MSFTNGP14.phx.gbl">news:#Ie#8TW1EHA.3468=
@TK2MSFTNGP14.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>i think it was because of a copy of =
the DLL in=20
the other project bin directory. i removed it and now it seems to work =

fine.</FONT></DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Scott Allen" &lt;<A=20
=
href=3D"mailto:bitmask@[nospam].fred.net">bitmask@[nospam].fred.net</A>&g=
t;=20
wrote in message <A=20
=
href=3D"news:r1qjq0tsb13v6tfb4j05f6qinipn34jl9u@4ax.com">news:r1qjq0tsb13=
v6tfb4j05f6qinipn34jl9u@4ax.com</A>...</DIV>Interesting.=20
Using FileMon<BR>(<A=20
=
href=3D"http://www.sysinternals.com/ntw2k/source/filemon.shtml">http://ww=
w.sysinternals.com/ntw2k/source/filemon.shtml</A>)<BR>you=20
could see the exact instance when the .dll is touched. Perhaps =
it<BR>gets=20
loaded before the shadow copy path is set.<BR><BR>--<BR>Scott<BR><A=20
=
href=3D"http://www.OdeToCode.com/blogs/scott/">http://www.OdeToCode.com/b=
logs/scott/</A><BR><BR><BR>On=20
Sun, 28 Nov 2004 11:40:53 +0200, "z. f."<BR>&lt;<A=20
=
href=3D"mailto:zigi@info-scopeREMSPAM.co.il">zigi@info-scopeREMSPAM.co.il=
</A>&gt;=20
wrote:<BR><BR>&gt;well, <BR>&gt;iti works fine most of the time, but =
i still=20
sometimes have to recycle the IIS because the DLL is in use, and i =
just=20
can't figure out where or why it does=20
that.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;&nbsp; "Scott Allen" =
&lt;<A=20
=
href=3D"mailto:bitmask@[nospam].fred.net">bitmask@[nospam].fred.net</A>&g=
t;=20
wrote in message <A=20
=
href=3D"news:jlu6q0l59a8l4itucrtti4r011k8bpm97l@4ax.com">news:jlu6q0l59a8=
l4itucrtti4r011k8bpm97l@4ax.com</A>...<BR>&gt;&nbsp;=20
Of course this would have to happen before the web app tries to=20
load<BR>&gt;&nbsp; the assembly....<BR>&gt;<BR>&gt;&nbsp; =
--<BR>&gt;&nbsp;=20
Scott<BR>&gt;&nbsp; <A=20
=
href=3D"http://www.OdeToCode.com/blogs/scott/">http://www.OdeToCode.com/b=
logs/scott/</A><BR>&gt;<BR>&gt;&nbsp;=20
On Tue, 23 Nov 2004 11:53:30 -0500, Scott Allen<BR>&gt;&nbsp; &lt;<A =

=
href=3D"mailto:bitmask@[nospam].fred.net">bitmask@[nospam].fred.net</A>&g=
t;=20
wrote:<BR>&gt;<BR>&gt;&nbsp; &gt;I have not tried this, but you =
might be=20
able to modify the<BR>&