Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8962013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:01:48+00:00 2026-06-15T16:01:48+00:00

I use the ASP.NET Dynamic Data web template with an SQL Server 2008 database

  • 0

I use the ASP.NET Dynamic Data web template with an SQL Server 2008 database and when I try to add .mdf file in App_Data I get

The file cannot be opened because it is being used by another process.
Please close all applications that might access this file and try again

I try find solutions but its very different

Hi Ken, this is because you are trying to add your DB to the project
(i.e. copy it there) not connect to it, to connect add a Entity
Framework data model and then select your Data base and all should go
well.

If you actually want to have the DB in the App_Data folder then you
will need:

To have SQL Server Express installed locally and on your web server.
Temporarily stop your SQL Server so that the DB is accessible then
copy it to the App_Data folder.

Or

  1. Go to SQL Server Configuration Tools and stop the SqlserverExpress Service.

  2. In Solution Explorer a Right click on project add existing Item
    ., Go to Program files and search for you required .mdf file in it add
    it to Project.

  3. Goto SQL Server Configuration tools start the Sqlexpress Service.

  4. Run Your solution.

How I can resolve my issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:01:49+00:00Added an answer on June 15, 2026 at 4:01 pm

    If you have accessed this mdf file before using either Sql Management Studio or your Visual Studio xx. Then please close Sql Server running this mdf file, I mean, you have to stop the Sql Server Services and then copy the mdf file from its location to the desired location.

    After copying, you can very well restart the Sql Server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The default ASP.NET Dynamic Data template by default uses a GridView to display the
I'm writing a pretty complex web form using ASP.NET Dynamic Data. Several of the
I'm currenlty using Asp.Net Dynamic Data, with Linq to Sql, to create an simple
Is there any way to use ASP.NET Dynamic Data WebApp or Scaffold using a
I'd like to use ASP.NET Dynamic Data 4.0 with an EF POCO ObjectContext as
Since the automatic scaffolding of ASP.NET Dynamic Data Web Pages does most of the
I am using ASP.NET Dynamic Data Entities project to generate a web application for
i am new on asp.net Dynamic Data. my web application are not in english
I am trying to use the ASP.NET Dynamic Data features to generate CRUD scaffolding
can you use ms access as the backend of a asp.net dynamic data project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.