Link to home
Start Free TrialLog in
Avatar of pendragon01
pendragon01Flag for United States of America

asked on

Getting "process cannot access the file..." error every time I run my application in Visual Studio 2005

I am creating an application in Visual Studio 2005 using Visual Basic.  Each time I run the program to test and debug it says that the build succeeded and then I get the following error message:
"The operation could not be completed.  The process cannot access the file because it is being used by another process"
I am accessing SQL Server 2000 as a datasource but not any other files.  Nor am I creating, saving, or editing any files.  The program is a basic get and set application for the database.
If I end the <projectname>.vshost.exe process from task manager and run the program again it will open fine. (this process begins again immediately after I end it)
The last application I created in Visual Studio did have file manipulation in it and this is when the error began.  This new application runs fine on other workstations installed with Visual Studio 2005.
Any help will be greatly appreciated.  It is a pain to have to use task manager and I worry that this error will effect the final compile of the application.
Avatar of Answer_Me
Answer_Me
Flag of India image

have you checked your project settings
ASKER CERTIFIED SOLUTION
Avatar of Answer_Me
Answer_Me
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial