This project is read-only.

Creating the App_Data and connecting to the Database

Jul 2, 2010 at 8:41 PM

Hi all,


I am on page 34 adding the database to the project and I am getting an error saying that "the file cannot be opened because it is being used by another process". can anyone tell me how to counter this one.


Jul 2, 2010 at 9:48 PM

The most likely cause is that the application is running. If you're running in debug mode, you can use the Shift-F5 shortcut to stop running. It's also possible that the application isn't running but the web development server is still running. You'll see that icon in your taskbar, near the system clock. Worst case, you can just shut down Visual Studio and that should release any files that need to be closed.

Jul 3, 2010 at 10:08 AM



I have tried all of this and nothing it always returns the same error, i went further to restarting the laptop and stopping all sql services(ssis,ssrs)but this didn't solve the issue.not sure if this is a VS2010 bug or not.


Jul 7, 2010 at 10:12 PM

I didn't run into this issue and I'm using VS2010.  Have you tried using something like Process Explorer to look at what processes have the file open?