Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Updated 14-Jan-13 7:39am
v4

1 solution

 
Share this answer
 
v4
Comments
ExpertITM 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.
Manish Kumar 15-Apr-16 2:01am    
Hey pls help me out to solve this problem.
Manish Kumar 15-Apr-16 2:02am    
Hey pls help me out to sdolve this problem. Thanks in advance.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900