PC Review


Reply
Thread Tools Rate Thread

Cannot open DLL file for writing

 
 
=?Utf-8?B?SmFpbWUgU3R1YXJkbw==?=
Guest
Posts: n/a
 
      16th Aug 2005
Hi all...

I have an ASP.NET 2.0 application. This application uses 2 components, named
Informe.dll and Seguridad.dll, whose source codes are under the same solution
as the ASP.NET application. The application resides on a remote computer
running Windows 2003 Server. My development PC is under Windows XP and Visual
Studio 2005 Beta 2.

When I rebuild the application, or when i modify any DLL, the following
error is shown for both DLL's (or for the modified one):

Error 2 Cannot copy assembly 'Seguridad.dll' to file 'C:\Documents and
Settings\jstuardo\Configuración
local\Temp\VWDWebCache\srv-repsvc_IntranetVida_cartolas\Bin\Seguridad.dll'.
Unable to add 'D:\Proyectos\Visual Studio
2005\Projects\IntranetVida\Security\obj\Debug\Seguridad.dll' to the Web.
Server error: Cannot open file "Seguridad.dll" for writing.


In order to refresh the component, I have to reset my computer.

Any help to solve this problem would be greatly appreciated.

Thanks
Jaime

 
Reply With Quote
 
 
 
 
jasonkester
Guest
Posts: n/a
 
      17th Aug 2005
2.0, eh? That's too bad. I'd have hoped they would have fixed this by
now.

Basically, you're running into the issue that every Enterprise
developer hits with VS.NET on a daily basis. There is nothing wrong
with your project. You have nothing misconfigured. Your only sin is
that you have multiple .dlls in your project, and one of them has grown
beyond 640k.

VS.NET has a known issue, where it sometimes locks down a large .dll
and refuses to release it, even when it is trying to build a new
version of that .dll or overwrite an old version. There are
workarounds to make this happen less frequently, but no real solution.

Basically, you need to exit VS.NET and delete the content of ALL your
bin directories whenever this happens. I have a script sitting on my
desktop for this purpose, and I imagine thousands of other developers
do too. It's one of many small inconveniences you learn to live with
when developing in the (otherwise) most productive IDE in history.

Good luck!

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

 
Reply With Quote
 
Bruce
Guest
Posts: n/a
 
      17th Aug 2005
Hm... i dont think NetBeans have any dll problems ^_^

"jasonkester" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 2.0, eh? That's too bad. I'd have hoped they would have fixed this by
> now.
>
> Basically, you're running into the issue that every Enterprise
> developer hits with VS.NET on a daily basis. There is nothing wrong
> with your project. You have nothing misconfigured. Your only sin is
> that you have multiple .dlls in your project, and one of them has grown
> beyond 640k.
>
> VS.NET has a known issue, where it sometimes locks down a large .dll
> and refuses to release it, even when it is trying to build a new
> version of that .dll or overwrite an old version. There are
> workarounds to make this happen less frequently, but no real solution.
>
> Basically, you need to exit VS.NET and delete the content of ALL your
> bin directories whenever this happens. I have a script sitting on my
> desktop for this purpose, and I imagine thousands of other developers
> do too. It's one of many small inconveniences you learn to live with
> when developing in the (otherwise) most productive IDE in history.
>
> Good luck!
>
> Jason Kester
> Expat Software Consulting Services
> http://www.expatsoftware.com/
>



 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      17th Aug 2005
Yeah, but NetBeans produce a lot of NetGas... ;-)



Juan
====

"Bruce" <(E-Mail Removed)> wrote in message news:O$(E-Mail Removed)...
> Hm... i dont think NetBeans have any dll problems ^_^



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Settings to open a file by only writing name it & clicking open bu =?Utf-8?B?TWFyaw==?= Microsoft Word Document Management 0 21st Sep 2006 06:55 PM
server error; can not open file .tmp for writing =?Utf-8?B?Sm95?= Microsoft Frontpage 1 12th Apr 2005 09:44 PM
Server Error: Cannot open file for writing lnlcomputers Microsoft Frontpage 1 21st Aug 2004 09:02 PM
Server Error: Cannot Open File for Writing bam Microsoft Frontpage 1 14th Jun 2004 12:58 PM
Server error: cannot open file for writing Amanda Microsoft Frontpage 1 14th Oct 2003 07:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:09 AM.