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

Posted on 2007-10-18
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.
Question by:pendragon01
    LVL 10

    Expert Comment

    have you checked your project settings
    LVL 10

    Accepted Solution


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now