I am trying to start from the beginning of ASP.NET MVC 4.
And immediately hit the problem, according to the e-book, I would have to start a new mvc 4 internet application, debug and select the log-in from tempate UI, and then stop. This should create the mdf file in the App_Data folder. Which I should be able to click and open in Server Explorer.
What actually happens is the database is created in my SQL Express.
The correct execution of this step is critical to the rest of the tutorial.
I am familiar with MVC, but mostly with the interface, so I am trying to improve my understanding of the database side / MVC models.
This is a completely new project, no changes have been made, only from the box code. On a Windows XP machine using Visual Studio 2010.
Connectionstring -
<add name="DefaultConnection" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=aspnet-HaveYouSeenMe-20131125091100;Integrated Security=SSPI" providerName="System.Data.SqlClient" />
Can someone explain why my connectionstring from the line creates Db in SQL Express and how to create mdf in the App_Data folder, as the book suggests. amuses.
c # visual-studio-2010 asp.net-mvc-4
mkell
source share