dotnet web sql business etc

12 серпня, 2011

The provider did not return a ProviderManifestToken string

I just have been going through ASP.NET MVC tutorial, step 5 (http://www.asp.net/mvc/tutorials/getting-started-with-mvc3-part5-cs), when I have ran into the "The provider did not return a ProviderManifestToken string" error when interacting with Entity Framework. When I tried to create a Controller specifying Model class  (Movie (MvcMovie.Model)) and Data Context Class (MovieDBContext (MvcMovie.Model)), Visual Studio gave an error "The provider did not return a ProviderManifestToken string". My connection string seemed fine:
 add name="MovieDBContext" connectionString="Server=.;database=movies;Integrated Security=SSPI;User Instance=true" providerName="System.Data.SqlClient"/>
<

Changing User Instance from true to false, solved the issue :). Why? I don't know, have not had time to investigate.

Мітки: ,

0 коментарі(в):

Дописати коментар

Підписка на Дописати коментарі [Atom]

<< Головна сторінка