By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,526 Members | 2,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,526 IT Pros & Developers. It's quick & easy.

dll getting locked in referencing project's bin

P: n/a
TS
in my web project's bin folder, the dll, that comes from a project reference
of a class library in same solution, can't be deleted. it says it has a
sharing violation. i also cannot delete the .projdata file in the class
library's obj directory. This is causing updates to the class library not
getting seen in the web app.

i ran filemon and it just says sharing violation but i dont' know why. i'm
sure by closing & re-opening VS.net it will fix it, but i don't want to
always have to do that. i've killed the worker process and restarted iis and
they dont' help.

What do i do?
Also, what is the obj directory for?

thanks a bunch!
Jan 27 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Have you killed the aspnet process?

"TS" <ma**********@nospam.nospam> wrote in message
news:OS**************@TK2MSFTNGP10.phx.gbl...
in my web project's bin folder, the dll, that comes from a project
reference of a class library in same solution, can't be deleted. it says
it has a sharing violation. i also cannot delete the .projdata file in the
class library's obj directory. This is causing updates to the class
library not getting seen in the web app.

i ran filemon and it just says sharing violation but i dont' know why. i'm
sure by closing & re-opening VS.net it will fix it, but i don't want to
always have to do that. i've killed the worker process and restarted iis
and they dont' help.

What do i do?
Also, what is the obj directory for?

thanks a bunch!

Jan 28 '06 #2

P: n/a
Hi TS,

As for the class library project's output assembly, is it strong-named?
Based on my experience, since strong-named assemblly is not copied to
client application(which reference it)'s local location, and when the
application use it do not shadow copy it , there will occur such locking
issue. Also, ASP.NET web application won't shadow copy strong-named
assembly, therefore if this is the case, you can try remove the strong-name
on the class project assembly to see whether it helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "TS" <ma**********@nospam.nospam>
| Subject: dll getting locked in referencing project's bin
| Date: Fri, 27 Jan 2006 09:12:34 -0600
| Lines: 19
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <OS**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 101nat080.tea.state.tx.us 198.214.101.80
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:374030
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| in my web project's bin folder, the dll, that comes from a project
reference
| of a class library in same solution, can't be deleted. it says it has a
| sharing violation. i also cannot delete the .projdata file in the class
| library's obj directory. This is causing updates to the class library not
| getting seen in the web app.
|
| i ran filemon and it just says sharing violation but i dont' know why.
i'm
| sure by closing & re-opening VS.net it will fix it, but i don't want to
| always have to do that. i've killed the worker process and restarted iis
and
| they dont' help.
|
| What do i do?
|
|
| Also, what is the obj directory for?
|
| thanks a bunch!
|
|
|

Jan 30 '06 #3

P: n/a
TS
the project is not building a strong name assemlbly. Sometimes killing the
worker process works, sometimes it doesn't - sometimes i have to close the
solution of close Vs.net.

"Steven Cheng[MSFT]" wrote:
Hi TS,

As for the class library project's output assembly, is it strong-named?
Based on my experience, since strong-named assemblly is not copied to
client application(which reference it)'s local location, and when the
application use it do not shadow copy it , there will occur such locking
issue. Also, ASP.NET web application won't shadow copy strong-named
assembly, therefore if this is the case, you can try remove the strong-name
on the class project assembly to see whether it helps.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "TS" <ma**********@nospam.nospam>
| Subject: dll getting locked in referencing project's bin
| Date: Fri, 27 Jan 2006 09:12:34 -0600
| Lines: 19
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <OS**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 101nat080.tea.state.tx.us 198.214.101.80
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:374030
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| in my web project's bin folder, the dll, that comes from a project
reference
| of a class library in same solution, can't be deleted. it says it has a
| sharing violation. i also cannot delete the .projdata file in the class
| library's obj directory. This is causing updates to the class library not
| getting seen in the web app.
|
| i ran filemon and it just says sharing violation but i dont' know why.
i'm
| sure by closing & re-opening VS.net it will fix it, but i don't want to
| always have to do that. i've killed the worker process and restarted iis
and
| they dont' help.
|
| What do i do?
|
|
| Also, what is the obj directory for?
|
| thanks a bunch!
|
|
|

Jan 30 '06 #4

P: n/a
Thanks for your response TS,

Seems a bit strange since non-storng-named assembly in private bin dir of
asp.net application are always shadow copied. Have you ever changed the
class library project's output directory path? by default, class library
project will generate the output assembly and put it under the project's
sub folder ( project\bin\debug), have you manually changed this path to
another place, e.g: the ASP.NET application's private bin dir?

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 1 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.