我已升级我的服务器机器以使用 MySQL Connector 6.3.4,并且在我们的网站中,我们还添加了成员(member)角色提供程序。

当我运行网站时,我收到此错误。

配置错误
说明:在处理为该请求提供服务所需的配置文件期间发生错误。请查看下面的特定错误详细信息并适当修改您的配置文件。

解析器错误消息:无法初始化提供程序。缺少或不正确的架构。





我的 sql 服务器版本是 5.0.90 社区网。

升级连接器时是否有任何必须在服务器端更改的设置

这是我的 web.config 文件中的标签。







因为当我在本地机器上运行网站时,它会成功运行,但在服务器上我无法运行它并出现上述错误。
连接字符串没有错误

升级连接器时我们要做哪些服务器端设置....

谢谢

最佳答案

我自己也遇到了同样的问题。我正在使用 Mysql 连接器 6.3.0.0
到目前为止,我在网上搜索时遇到了以下建议:

1) Add "MySql.Data.dll" & "MySql.Web.dll" into your application  "bin" folder.
2) Add reference to above to dlls in your application .
3) Add autogenerateschema="true" in your web.config file for required sections.
4) Check your Mysql connector version - make sure that the one that is in your bin folder is mentioned in your web.config file.
5) Check your connection string - make sure it is correct and connected successfully.
6) Check mysql membership related table structure.
7) Check schema version in "my_aspnet_schemaversion" table (e.g since you have upgraded to newer version I insist you should check this).
8) If the problem is on remote machine (e.g Production Server) you may wan to check this : http://www.reggieburnett.com/referencing-connectornet-on-a-remote-machine

我确定您可能已经浏览了此列表,但我希望您在升级到较新版本后检查“my_aspnet_schemaversion”表中的架构版本(例如比较本地和远程表的“版本”字段值)。

顺便说一句:我已经检查了这个列表来解决我的问题,但它没有帮助。我希望它可以对你有所帮助。

编辑 :
你好,
我们可以通过以下方式修复此错误:
1) Deleted the tables for memberships in the db and had the mysql membership provider regenerate them
2) than set the Aministration.config file to trust the Mysql Membership Provider (e.g related to IIS admin)

问候,

高拉夫

关于mysql - 无法初始化提供程序。缺少或不正确的架构,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3699688/

10-11 08:57