Search
Resolved
as Won't Fix Help for as Won't Fix

58
Sign in to vote
0
Sign in to vote
Sign in
to vote
Type: Bug
ID: 227522
Opened: 10/16/2006 1:31:21 AM
Access Restriction: Public
11
Workaround(s)
55
User(s) can reproduce this bug
I get this message usually when in a debug/edit/debug cycle after successfully building a C# solution and pressing F5 to debug it.

Exception Details: System.IO.FileLoadException: Cannot create/shadow copy 'VariousFileName' when that file already exists.

If I wait a few moments before pressing F5 after a build, APS.NET seems to have the time to complete whatever it needs to do. This is running VS2005/ASP.NET on localhost. I can't reproduce it on purpose yet, but it happens about 10 times/hour with my current project.
Details (expand)
Product Language
English
Version
Visual Studio 2005 Team Edition for Software Developers
Operating System
Windows XP Professional
Operating System Language
English
Programming Language
C#
Technology Area
ASP.NET
Steps to Reproduce
Build/Rebuild a project. As soon as it says "Build/Rebuild Succeeded" press F5 to debug the web startup application.
Actual Results
Sometimes it works, sometimes it fails with the error message from ASP.NET.
Expected Results
It should always work, or pause until it is ready like it typically does. I did not notice this behaviour before VS2005 SP1.
File Attachments
0 attachments
Sign in to post a comment.
Posted by pzolja on 3/2/2007 at 9:27 AM
It usually happens when I write custom controls or use controls that I write. Restarting the web server (the one that comes with VS or IIS) or cleaning the solution fixes the problem. I wish I wouldn't have to resort to doing this though...
Posted by Fabrice Marguerie on 5/14/2007 at 9:45 AM
Could you reopen this bug, please? It's closed as "won't fix", but without explanation. This bug is real, appeared with VS SP1 and should be fixed.
Posted by jwrummell on 6/18/2007 at 9:17 AM
I agree with nbenin, reopen please!
Posted by lchilds on 7/3/2007 at 12:55 PM
This error happens too often and forces you to end your debug session. I agree that it needs to be resolved or at least explained.
Posted by Seshu Palachulla on 7/5/2007 at 2:59 PM
Ok, I just had the problem with it a few moments ago and I was surprised to this message for the first time.My Enviroment is Visual Studio 2005 on Windows Server 2003.

Ok The error came when I deleted or uninstalled an assembly from the GAC and then rebuild the new dll and tried to add it.

My work around is

1. Go to Command Prompt
2. Navigate to C:\Windows\Assembly\GAC_MSIL"
3. What is the Name of the your assembly? A folder by that assembly name exists. delete that folder
4. Try installing the Assembly once again.

It should work and you would not get the message a copy of file already exists. When you have installed successfully the folder with your assembly name that you just deleted will be recreated.

Hope it is useful

Thanks
Seshu Palachulla
Posted by SLADR on 7/19/2007 at 3:04 AM
I also agree with nbenin, reopen it

I got this error in my release - version on "Windows 2003 Server", IIS6, .NET 2.0!

There is no visual studio installed on this machine!
Posted by mjmcmahon on 7/23/2007 at 9:22 PM
I've been experiencing this problem today as well while trying to debug and test a web service via an NUnit test class.

Environment: Visual Studio 2005 Version 8.0.50727.762
OS: Windows XP SP2
Posted by geordiepaul on 10/10/2007 at 4:22 AM
This is by far and away the most annoying Visual Studio "Bug". Everyone gets it but it would appear Microsoft won't acknowledge this and fix it!

Why won't you fix it?
Posted by roboffer on 10/10/2007 at 4:31 AM
This needs to be reopened and fixed. C'mon Bill get Visual Studio installed.
Posted by This_handle_has_been_reserved_by_another on 12/31/2007 at 9:26 AM
Yes, please re-open. Or at the very least, explain why you won't fix it.
Posted by mausch on 8/19/2008 at 7:03 AM
This still happens to me with VS2008, win2k3
Posted by Stijn V on 9/24/2008 at 2:35 AM
It has come pretty far. Developers are now begging MS to at least acknowledge their errors. MS says hey, its fixed. If you want you can complain on this webform. Talk to the hand.
Posted by CarlosTheJackal on 1/21/2009 at 8:12 AM
Agreed, my whole team suffers with this problem. Seems to happen only with Enterprise Library assemblies, including Unity.
Posted by goggles8 on 8/18/2009 at 4:24 PM
I google this error and get over 50,000 search results and yet not fix??????
I am seriously considering moving to another platform