Bug 5882 - Process cannot access mdb file
Summary: Process cannot access mdb file
Status: RESOLVED DUPLICATE of bug 5608
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.2.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-06-27 05:36 UTC by Geir Ludvigsen
Modified: 2012-06-27 13:57 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 5608

Description Geir Ludvigsen 2012-06-27 05:36:50 UTC
Open VS2010 and open my solution. Build and debug my code. I stop the debugging from VS2010.

Do some code changes. Try to build again. FAILS:

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3001,9): error MSB3021: Unable to copy file "C:\Data\Vault\Prosjekter\MySolution\MyProject\bin\Debug\MyProject.dll.mdb" to "bin\Debug\MyProject.dll.mdb". The process cannot access the file 'bin\Debug\MyProject.dll.mdb' because it is being used by another process.

Have to restart VStudio to be able to build several times after my initial build/debug.

If I restart VS and I only build the solution (without debugging) it works all the time, but the problem starts when I debug once, after that I cannot build anymore.
Comment 1 Mikayla Hutchinson [MSFT] 2012-06-27 13:57:32 UTC

*** This bug has been marked as a duplicate of bug 5608 ***