我想要建立我的第一個MVC應用程序的教程here 一切都很好,直到我需要運行應用程序時,一個實體框架應該完成它的事情併爲我創建數據庫,但出於某種原因,我總是得到相同的錯誤:如何設置MVC應用程序使用SQL Server 2008 R2的快遞
提供程序沒有返回ProviderManifestToken字符串。
我的問題: 爲了使應用程序正常工作,我需要做些什麼必要的調整?
這裏是我的web.config文件中的連接字符串部分
<connectionStrings>
<add name="ApplicationServices"
connectionString="data source=Moran-Laptop;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
<add name="MovieDBContext"
connectionString="Data Source=|DataDirectory|Movies.sdf"
providerName="System.Data.SqlServerCe.4.0"/>
還有幾個其他關於此錯誤的stackoverflow線程。你有沒有嘗試過他們建議的? http://stackoverflow.com/questions/5423278/ef-4-1-exception-the-provider-did-not-return-a-providermanifesttoken-string – 2012-02-16 14:31:50
似乎是一個副本:http://stackoverflow.com/ questions/5423278/ef-4-1-exception-the-provider-did-not-return-a-providermanifesttoken-string – Vedran 2012-02-16 14:32:30
您是否已閱讀鏈接頁面上的評論?有幾個提到'ProviderManifestToken'爲什麼他們有這個問題以及他們如何修復它。我不是故意的,只要確保他們的解決方案都不適用於您。 – Nope 2012-02-16 14:33:10