Posted on: 10/5/2013 2:25:20 AM | Views : 713

In the tutorial by Rick Anderson,   MvcMovie, I come to the Accessing your Model's Data from a Controller  (http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/vb/intro-to-aspnet-mvc-3) where I intially got a error telling me to "create a separate DBCompiledModel for each type of server being used".  Then I found someone with the same problem on this site and I used his code in the web.config file.......
<connectionStrings>
     <add name="MovieDbContext"
     connectionString="Data Source=|DataDirectory|Movies.sdf"
     providerName="System.Data.SqlClient"/>
     <add name="Application ...

Go to the complete details ...