Click here to Skip to main content
12,948,385 members (65,448 online)
Rate this:
Please Sign up or sign in to vote.

I am Creating MVC Application MvcMovies by guiding tutorial('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"

also get error in
connectionString="Data Source=|DataDirectory|Movies.mdf;"

Which is mention in tutorial.

Please give me solution.


[Edit]Code block added[/Edit]
Posted 14-Jan-13 7:34am
Updated 14-Jan-13 7:39am

1 solution

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

Solution 1

ExpertITM 14-Jan-13 23:59pm

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.


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)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 5,344
CHill60 3,275
Maciej Los 2,703
Jochen Arndt 1,935
ppolymorphe 1,795

Advertise | Privacy | Mobile
Web02 | 2.8.170524.1 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2017
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