无法使用Entity Framework访问MVC中的数据

时间:2013-10-06 11:12:14

标签: asp.net-mvc entity-framework asp.net-mvc-4

我的数据库PragimTech中有一个名为 Employee 的表,我的Models文件夹中有两个类 Employee EmployeeContext 。 我在web.config中的连接字符串如下:

<connectionStrings>
<add name="EmployeeContext" connectionString="data source=GAURAV-PC/SQLEXPRESS; initial catalog=PragimTech; integrated security=SSPI"
     providerName="System.Data.SqlClient"/>

当我运行我的应用程序时,我收到 ProviderIncompatibleException

  

提供商未返回ProviderManifestToken字符串

我无法找到错误。请帮忙。

1 个答案:

答案 0 :(得分:0)

This topic could be helpfull for you.

检查InnerException以了解有关错误的详细信息。