Sys.WebForms.PageRequestManagerServerErrorException: The provider did not return a ProviderManifest instance.
Could not determine storage version; a valid storage connection or a version hint is required.
以我的情況來說,是ASP.NET 4.5 Webforms Project,有部份頁面的GridView或WebService是有使用SQLDataSource和EntityDataSource,
在升級到EF6後,就會出現上述的錯誤。
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk8VFzYEjmO56gfbvLp5odI7XlstlSo7YEsLNol0CJuzIWVu8wpl03652yNq_FfsY1WSEc9wgGYPHN3QyDquojtCB3Ru3N-XqUNP2J2XUX9TGT7GFyAl_PrRqOOH5K0oCRkyiGRk4UWW8e/s288/PageRequestManagerServerErrorException.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuQptWyesGqrV2bGGsHRMqON0P8pPJy7VCVRttlLwX1sytBaI6HsQ44O4kyYiYKhX9lwNx05pYjxV6HKBrWsWeL4iqJdEWmknYlgsTdN7qaQncnAZ2jHKDhmBbrLH65sMW68L5EyuixnfF/s288/Could%2520not%2520determine%2520storage%2520version.png)
上Google搜尋,並沒有統一的答案,而Microsoft Connect上的Bug Report還是未解決狀態。
一輪苦戰之後,最後找到一個解決方法,就是把Data Model (*.edmx) 中的ProviderManifestToken的值,由"2012"設回"2008",再Rebuild Solution就OK。
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi63WRxNnEO4HXInd7F9C9ER3nKLXYD43wuwyn8StBKxHytm7aGEJqf4ifBdXIAeYnzdFHAIdhE50v6BsLFmH5KyJU6bSw8w0eAxf05vO3OUjmgk-wyuXr6NfkH_E1M1OhTuNaB3loM_Nzf/s640/ProviderManifestToken.png)
沒有留言:
發佈留言