Click here to Skip to main content
11,494,851 members (67,954 online)
Rate this: bad
good
Please Sign up or sign in to vote.
Hello,

I am Creating MVC Application MvcMovies by guiding Asp.net tutorial(http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/accessing-your-model's-data-from-a-controller[^])

When I am adding new controller using template Controller with read/write actions and views entity framework, I am getting below error
"Unable to retrieve metadata for 'MvcTest2.Models.Movie'. The provider did not return a ProviderManifestToken string."

My connection string is
         connectionString="Data Source=.\\SQLExpress;Integrated Security=true;User Instance=true;AttachDBFilename=|DataDirectory|Movies.mdf;Initial Catalog=Movies"
         providerName="System.Data.SqlClient"
         

also get error in
         connectionString="Data Source=|DataDirectory|Movies.mdf;"
         providerName="System.Data.SqlClient"
         
Which is mention in tutorial.

Please give me solution.


Thanks.

[Edit]Code block added[/Edit]
Posted 14-Jan-13 8:34am
ExpertITM1.2K
Edited 14-Jan-13 8:39am
v4

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
v4
Comments
ExpertITM at 14-Jan-13 23:59pm
   
Hi,

it was problam with connection string and I have fixed by,
open VS and then switch to View=>Server Explorer and open the Server panel to create a connection, if this successfully, please copy the conn str of the remote one directly into your app or web.config.

ref.http://forums.asp.net/t/1832038.aspx/1?The+provider+did+not+return+a+ProviderManifest+Token+String+error+in+Asp+net+MVC+3+Entity+Framework+

Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Dnyaneshwar@Pune 692
1 Sergey Alexandrovich Kryukov 354
2 CHill60 293
3 Sascha Lefèvre 255
4 Nakul Chaudhari 236
0 Sergey Alexandrovich Kryukov 10,297
1 OriginalGriff 8,821
2 Sascha Lefèvre 3,864
3 Maciej Los 3,412
4 Richard Deeming 2,500


Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100