Visual Studio .NET - User controls crashing VB2010

Asked By Gerry H.
03-Nov-09 03:46 PM

Hello every one!!

I´m using UserControls to display diferent data on myapp,  I´m adding this controls into a Container(Panel) and set visible property = false to show and hide as the user click on my navegation bar and keep all of them active during execution.

When i click "Debbuging" button for the first time i worked really nice, all of my user controls showed correctly...BUT...

once i closed my app exec and made some changes on some of the controls when rebuilding VS throws an error when trying to debugg again:

Error 1 Unable to copy file "obj\x86\Debug\BLABLA.exe" to "bin\Debug\BLABLA.exe". The process cannot access the file 'bin\Debug\BLABLA.exe' because it is being used by another process. 

Then i erased everything on my debug folder, clean the app, rebuild and worked, but once again failed when making changes. What am I doing wrong??

 

 

Try these.  Try these.

04-Nov-09 01:50 PM
I am not sure if this fix applies to the 2010 version you have. But its worth a try.  Look at the Workarounds section in http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=114592 link.

And the most widely used solution in this case, is to create a pre-build command under the project properties. 
if exist "$(TargetPath).locked" del "$(TargetPath).locked"  
if not exist "$(TargetPath).locked" move "$(TargetPath)"  "$(TargetPath).locked"

Right-Click on your Project - Choose Properties - Under the "Build Events" tab , ente the above commands in the Pre-build event command line.


Create New Account
help
Visual Studio .net .NET Framework Hi NG, ich habe vor längerer Zeit mit Visual Studio .Net 2003 gearbeitet und überlege momentan auf einen neueren Stand upzudaten. Ein Visual Studio .Net 2008 scheint es nicht zu geben. Habe zumindest mit googeln nichts gefunden. Was
Wise for Visual Studio.NET Wise for Visual Studio.NET By Peter A. Bromberg, Ph.D. To "Print This Page" Link Peter Bromberg Wise for Visual Studio .NET is a total and complete installation development system for creating and editing Windows® Installer
Visual Studio versioning . . . . how to tell? .NET Framework To my knowledge, Visual studio 6 was released in 1998, then Visual Studio .NET 2002 is VS 7, then Visual Studio .NET 2003 is VS 7.1, then Visual
visual studio.net 2003 and Access 2007 database .NET Framework Hi I am currently using Visual Studio.Net 2003 running on Windows Server 2000 operating system. I have used Visual Studio.net 2003 connecting to Access 2002 databases in the pass with great success. Now
Is Visual Studio self-hosting ? .NET Framework Does Microsoft use Visual Studio IDE, Visual Studio Debugger, Visual Studio Linker and Visual Studio compiler for developing Visual Studio ? Or is Visual Studio not