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 6976015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:26:32+00:00 2026-05-27T17:26:32+00:00

After creating a mvc 3 web site using code first & adding same date

  • 0

After creating a mvc 3 web site using code first & adding same date to my db , I have up upload my db to my share hosting sql and change my connectionStrings ,
But when I’m running my site on my local machine it had recreate a db on my machine and did not approach the connectionStrings db , how ever I cant c the connectionStrings to any local db and my Appdata it empty (the db was never in my appdata folder)
Where can it store the connectionStrings ? and what did I do wrong?
thanks

<add name="ApplicationServices"
     connectionString="Data Source=11.11.111    .123; 
     Initial Catalog=DB_Name;
     User ID='UserName';  
     Password='UserPAss';
  " providerName="System.Data.SqlClient" />

  • 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-05-27T17:26:33+00:00Added an answer on May 27, 2026 at 5:26 pm

    Have you considered changing the connection strings back to what they were in your web.config before you published your site? Unless I’m mistaken, EF Code First uses the local running SQLExpress Instance by default, not mdf files in the App_Data directory.

    Then I would try to use web.config transforms when you publish your site.

    http://msdn.microsoft.com/en-us/library/dd465318.aspx

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

Sidebar

Related Questions

In my Spring MVC based web-app, I'm manually creating an Errors/BindingResult object after manually
I'm creating a multi-tenancy web site which hosts pages for clients. The first segment
I am working on an MVC application using Entity Framework. After creating an EDMX,
After creating a proof of concept for an ASP.NET MVC site and making sure
I am creating a code first MVC app with a separate class libraries for
After creating a metaclass using Moose::Meta::Class->create , how do I instantiate a real Moose
I try to run one program in myeclipse where after creating one web project
I have such view that handles user registration. After creating new user i want
I'm creating asp.net mvc login page. This is simple. Same as others. Controller contains
My ASP.NET MVC 3 project slows to a crawl after adding the 51Degrees mobile

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.