提供程序未返回ProviderManifestToken字符串错误 [英] The provider did not return a ProviderManifestToken string error

查看:440
本文介绍了提供程序未返回ProviderManifestToken字符串错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用ASP.Net MVC3,实体框架和MySQL创建一个Web应用.

I am trying to create a web app using ASP.Net MVC3, Entity Framework and MySQL.

我已将以下代码添加到我的Web.Config文件中.

I have added the following code to my Web.Config file.

<connectionStrings>
    <add name="ContactContext" connectionString="server=localhost;database=contacts;uid=root;pwd=password;" providerName="MySql.Data.MySqlClient"/>

  </connectionStrings>

我还在项目"Contact_Me"中创建了人"模型"ContactContext".当我尝试创建一个包含Person Model和Contact上下文的"ContactController"时,它给了我以下错误

I also have created "Person" Model , "ContactContext" in the project "Contact_Me". When I try to create a "ContactController" including Person Model and Contact context, it gives me the following error

无法检索"Connect_Me.Models.Persons"的元数据. 提供程序未返回ProviderManifestToken字符串"

"Unable to retrieve metadata for "Connect_Me.Models.Persons". The provider did not return a ProviderManifestToken string"

MYSQ& MVC3 SQL连接错误\ ProviderManifestToken,但是我使用的是MySQL ,这是我最接近的问题.但是答案并不能解决我的问题.

MYSQ & MVC3 SQL connection error \ ProviderManifestToken but I am using MySQL, this is the closest question to mine. But the answer didn't solve my problem.

预先感谢

推荐答案

问题出在MySQL连接器/Net.

The problem was with the MySQL connector/Net.

我以前使用过MySQL连接器/Net 6.3.5,在卸载并安装MySQL连接器/Net 6.5.4之后,此问题已解决.您可以在 http://www.mysql.com/products/connector/中找到最新的连接器.

I previously used MySQL connector/Net 6.3.5 and after I uninstalled it and installed MySQL connector/Net 6.5.4 the issue was fixed. You can find latest connectors at http://www.mysql.com/products/connector/

这篇关于提供程序未返回ProviderManifestToken字符串错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆