PC Review


Reply
Thread Tools Rate Thread

Cannot create/shadow copy 'XXX' when that file already exists

 
 
glaserp@sustainsoft.com
Guest
Posts: n/a
 
      26th Sep 2007
The error "Cannot create/shadow copy 'XXX' when that file already
exists" can occur when you try to run or debug an ASP.NET application.
If you search the web you'll find various causes and solutions to this
error. I would like to add a new and unusual circumstance for
posterity.

My application uses its own logging mechanism that writes log messages
to a plain text file. It also allows the location of the file to
specified as part of the configuration process. If the log file
location is set to the bin directory of the web application, this
error can occur along with a number of other unusual behaviors. These
behaviors include: It takes 30 to 60 seconds for the web page to load;
If the page loads successfully, postback events are not seen by the
web app (e.g., if you have a login page, the click event for the login
button never shows up in the handler, although you do see the page
being constructed and initialized).

The problem appears to be that IIS is monitoring the bin directory for
the change of any file. If any file changes, he feels compelled to
reload all the DLLs all over again. In the case of my app, evertime a
log message was written at the initialization phase of the lifecycle,
all the dll's in the app (about eight of them) were being reloaded.
Anything having to do with copying files got into a royally undefined
state -- hence our error.

Best of luck.

--Phil

 
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
Re: Cannot create shadow copy error Blue Max Windows Vista Performance 1 10th Mar 2009 06:21 PM
Re: Cannot create shadow copy error Mark H Windows Vista Performance 4 23rd Nov 2008 01:11 PM
Cannot Create/Shadow Copy Error =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= Microsoft ASP .NET 0 17th Apr 2007 11:34 AM
Cannot create/shadow copy?? help needed =?Utf-8?B?UGF0cmljayBG?= Microsoft C# .NET 1 10th Aug 2006 08:53 PM
Cannot create/shadow copy ? =?Utf-8?B?UGF0cmljayBG?= Microsoft ASP .NET 0 9th Aug 2006 09:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:21 AM.