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

  • Home
  • SEARCH
  • 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 7742939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:24:21+00:00 2026-06-01T09:24:21+00:00

I am using mvc3 to develop an database application and followed the Code-First Tutorial

  • 0

I am using mvc3 to develop an database application and followed the Code-First Tutorial using Entity Framework 4 of msdn site….
I followed all the steps but unable to see the sdf file….
I can perform CRUD operations but can not see the physical database file inside the app_data folder
I also did "Show all file" but still it is not shown in my visual studio explorer…even my App_data folder is empty…

Code inside the web.config file:

    <add name="Forum1Context"
    connectionString="Data Source=|DataDirectory|\Forum.sdf"
    providerName="System.Data.SqlServerCe4.0"/>

Please Help me!!

  • 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-01T09:24:22+00:00Added an answer on June 1, 2026 at 9:24 am

    I experienced a similar issue. In my case, the name attribute in the add tag was not the same as the name of the class which inherited from DbContext. When I changed the name attribute to match, then I could see the .sdf file, but rows I had inserted previously into the database were lost.

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

Sidebar

Related Questions

using MVC3, Code First (DbContext) Is there a way to implement (ideally) a facade
I have develop small Asp.net MVC3 application using Telerik rad Controls with in that
i have develop a small mvc3 application using Telerik Extension for asp.net mvc3 in
Using MVC3 and Entity Framework. Am trying to get validation flowing from data model
I have created a simple application using MVC3 and the site is based on
I am using MVC3, EF Model first. I have a form with two DropDownList
I am using MVC3, EF Model first on my project. I have a view
I am using MVC3, EF Model first on my project. I have a view
I am using MVC3 framework to design a website. I pull the data in
I'm using MVC3 with C# code. I have a table in my SQL Server

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.