473,320 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

dll getting locked in referencing project's bin

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
4 1670
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Paul H | last post by:
How do you folks get a reliable and complete brief of what is required before development starts? I am forever going back to a client once a project has started saying "Hang on, now that I've...
1
by: Manny Silva | last post by:
Hi, I'm trying to create a simple managed C++ application that will be a test UI around a couple of ATL COM DLL projects that I have created (all with VS2003). What I am attempting to do is...
4
by: Ron | last post by:
I need to write a custom textbox control that references an object located in the Global.asax class, but I can't compile the control into a DLL without including the reference to the project DLL...
4
by: Oenone | last post by:
Another VB6 feature that I'm missing in VB.NET is with regard to referencing projects vs. referencing DLLs. In VB6 I can reference my support library, Support.dll, and call its functions. If...
1
by: Philippe Lang | last post by:
Hello, What is the best method to debug a database that *sometimes* gets locked in the INSERT mode? ('ps -afx | grep postgres' shows me a process that is freezed in INSERT mode.) Thanks ...
2
by: wheresjim | last post by:
I have a project in which I only need read access to a Microsoft Access database (.mdb file) via JDBC and unfortunately, the file is frequently locked by another application when I need access...
7
by: JR | last post by:
VS2005 Team Developer edition (final) developing a Windows Application When in debug mode if you make any changes to the application settings or project properties, the next time I attempt to...
3
by: eduwushu | last post by:
Hi there. Im developing a c# app and i have a solution with some projects: the main project which generates the executable file and some other projects which some of them im compiling generate...
1
by: tricard | last post by:
Good afternoon all, I have recently been trying my hand out at the ADO model as before I have only used DAO (just thought I would expand my knowledge a bit). The problem I am having is that...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.