Click here to Skip to main content
16,010,650 members
Home / Discussions / C#
   

C#

 
AnswerRe: Resetting a user control using the same instance Pin
MicroVirus9-Aug-11 12:37
MicroVirus9-Aug-11 12:37 
GeneralRe: Resetting a user control using the same instance Pin
MAW309-Aug-11 13:13
MAW309-Aug-11 13:13 
GeneralRe: Resetting a user control using the same instance Pin
BillWoodruff9-Aug-11 14:54
professionalBillWoodruff9-Aug-11 14:54 
GeneralRe: Resetting a user control using the same instance Pin
MicroVirus10-Aug-11 3:15
MicroVirus10-Aug-11 3:15 
QuestionVisio Interop and C# Pin
USAFHokie809-Aug-11 7:53
USAFHokie809-Aug-11 7:53 
QuestionAdvice on building charts C#, ASP, etc. Pin
MAW309-Aug-11 7:31
MAW309-Aug-11 7:31 
AnswerRe: Advice on building charts C#, ASP, etc. Pin
Abhinav S9-Aug-11 7:39
Abhinav S9-Aug-11 7:39 
QuestionVS2010 "Unable to copy file..." With Custom Controls Pin
Matt U.9-Aug-11 7:26
Matt U.9-Aug-11 7:26 
Okay, I have had this problem in the past. However, the projects were small personal projects which I wrote at home, for fun. Now I am writing applications here at work. And it is beginning to hinder the process greatly.

I have noticed that whenever I use a custom control (or, for example, the free DevExpress XtraEditors controls which I registered for and downloaded) in any project, I receive the error:

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

When I first open the project and I work on a form which uses a custom control it is okay. However, once I make a change and re-build the project a few times I begin to receive the error message. Like, every time from then on. Once I close VS2010, delete the bin/Debug directory and restart, it works fine again for a few builds. Then it goes back to the same crap. This is highly frustrating.

I have another project which was perfectly fine, for months. That is, until I made an upgrade and it involved a custom control from right here on good ol' CodeProject. I then began to receive the same error message. But as long as I do not open the forms which use them and make changes, and I do not make changes to the custom control itself or its code, everything is fine. I restarted the current project a while ago and I have been working on a different feature. And it has been flawless.

Why does a custom control do this? Is there any way around it?

I have tried deleting the .SUO file, the 'bin' folders, the 'obj' folders. I have tried the pre-build event which renames the file with a '.locked' extension. As well as a few other "solutions" which I found online. They work for two or three builds and then it is right back to the same thing.

Thanks CP.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.

AnswerRe: VS2010 "Unable to copy file..." With Custom Controls Pin
BillWoodruff9-Aug-11 8:44
professionalBillWoodruff9-Aug-11 8:44 
GeneralRe: VS2010 "Unable to copy file..." With Custom Controls Pin
Matt U.9-Aug-11 8:58
Matt U.9-Aug-11 8:58 
GeneralRe: VS2010 "Unable to copy file..." With Custom Controls Pin
BillWoodruff9-Aug-11 10:05
professionalBillWoodruff9-Aug-11 10:05 
GeneralRe: VS2010 "Unable to copy file..." With Custom Controls Pin
Matt U.9-Aug-11 10:12
Matt U.9-Aug-11 10:12 
GeneralRe: VS2010 "Unable to copy file..." With Custom Controls Pin
BillWoodruff9-Aug-11 14:58
professionalBillWoodruff9-Aug-11 14:58 
GeneralRe: VS2010 "Unable to copy file..." With Custom Controls Pin
Matt U.10-Aug-11 1:44
Matt U.10-Aug-11 1:44 
GeneralRe: VS2010 "Unable to copy file..." With Custom Controls Pin
BillWoodruff10-Aug-11 3:40
professionalBillWoodruff10-Aug-11 3:40 
GeneralRe: VS2010 "Unable to copy file..." With Custom Controls Pin
Matt U.10-Aug-11 5:28
Matt U.10-Aug-11 5:28 
QuestionSQL server's Bigint in C# Pin
vanikanc9-Aug-11 6:00
vanikanc9-Aug-11 6:00 
AnswerRe: SQL server's Bigint in C# Pin
Shameel9-Aug-11 6:06
professionalShameel9-Aug-11 6:06 
GeneralRe: SQL server's Bigint in C# Pin
vanikanc9-Aug-11 6:33
vanikanc9-Aug-11 6:33 
GeneralRe: SQL server's Bigint in C# Pin
Ennis Ray Lynch, Jr.9-Aug-11 6:45
Ennis Ray Lynch, Jr.9-Aug-11 6:45 
GeneralRe: SQL server's Bigint in C# Pin
vanikanc9-Aug-11 7:02
vanikanc9-Aug-11 7:02 
GeneralRe: SQL server's Bigint in C# Pin
Ennis Ray Lynch, Jr.9-Aug-11 7:05
Ennis Ray Lynch, Jr.9-Aug-11 7:05 
GeneralRe: SQL server's Bigint in C# Pin
Pete O'Hanlon9-Aug-11 7:09
mvePete O'Hanlon9-Aug-11 7:09 
GeneralRe: SQL server's Bigint in C# Pin
vanikanc9-Aug-11 8:21
vanikanc9-Aug-11 8:21 
GeneralRe: SQL server's Bigint in C# Pin
Pete O'Hanlon9-Aug-11 8:45
mvePete O'Hanlon9-Aug-11 8:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.