?
Solved

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

Posted on 2007-10-18
2
Medium Priority
?
337 Views
Last Modified: 2010-08-05
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.
0
Comment
Question by:pendragon01
  • 2
2 Comments
 
LVL 10

Expert Comment

by:answer_me
ID: 20103786
have you checked your project settings
0
 
LVL 10

Accepted Solution

by:
answer_me earned 500 total points
ID: 20103795
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question