Getting "process cannot access the file..." error every time I run my application in Visual Studio 2005
Posted on 2007-10-18
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.