Posted by Anuraj on Thursday, September 12, 2013 Reading time :1 minute
Sometimes while debugging ASP.Net applications, intermittently you may get an error like this.
The .Net Framework has a feature called Shadow Copy. Shadow copy is enabled on every appdomain created by ASP.NET by default. By default assemblies loaded will be copied to a shadow copy cache directory, and will be used from that location. ASP.Net does this because the original file is not locked and can be modified. This error can be resolved, if you wait a few moments before pressing F5 after a build, ASP.NET seems to have the time to complete whatever it needs to do.
You can also modify web.config to resolve the issue.
What do you think? I would like to hear your thoughts, suggestions, and questions in the comments section below.