无法加载mysql.web总成 [英] Can't load mysql.web assembly

查看:106
本文介绍了无法加载mysql.web总成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与ASP.net MVC3 Web应用程序。我最终想使用一个登录表单中使用roleprovider和认证。所以我有这个code:

I am making a web application with ASP.net MVC3. I eventually want to use roleprovider and authentication used by a login form. So I have this code:

<authentication mode="Forms">
  <forms loginUrl="~/Home/Login" timeout="2880" />
</authentication>

<roleManager enabled="true" defaultProvider="MyRoleProvider">
  <providers>
    <add name="MyRoleProvider"
         type="StudentAdministratieProject.Authorisation.CustomRoleProvider"/>
  </providers>
</roleManager>

这code显然是设在我的web.config。

This code is obviously located in my web.config.

我得到的错误,当我启动应用程序:

The error I get when I start the application:

无法加载文件或程序MySql.Web,版本= 6.7.4.0,文化=中性公钥= c5687fc88969c44d或一个依赖无法加载。该系统找不到指定的文件。 **请注意,这是大致由荷兰翻译错误原是荷兰。

Can't load file or assembly MySql.Web, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d or one of the dependencies can't be loaded. The system cannot find the given file. ** Note that this is roughly translated from Dutch, the error was originally in Dutch.

任何想法?香港专业教育学院用Google搜索了很多,但无法找到任何这帮助我!

Any ideas? Ive Googled a lot but can't find anything which helped me!

推荐答案

意识到这是旧的,但如果它的后面看,这里是我发现的原因/解决方案。

realize this is old, but in case its viewed later, here's what I found is cause / resolution.

我必须做我的正常的.NET Web服务器(同一台机器上数据库和Web服务器)上的一些MySQL的工作,所以我用了MySQL的安装程序(<一个href=\"http://dev.mysql.com/tech-resources/articles/mysql-installer-for-windows.html\">http://dev.mysql.com/tech-resources/articles/mysql-installer-for-windows.html).那个小吸盘似乎已经和更新我的.NET的machine.config对我来说,有多好,所以它的连接器将使用.NET工作。愚蠢的安装程序。反正我去的时候去使用.NET / SQL Server应用程序(不配合到MySQL)我得到了同样的错误。

I had to do some MySQL work on my regular .NET web server (db and web servers on same machine) so I used the MySQL installer (http://dev.mysql.com/tech-resources/articles/mysql-installer-for-windows.html). That little sucker seems to have gone and updated my .NET machine.config for me, how nice, so it's connector will work well with .NET. Stupid installer. Anyways when I went to go use a .NET / SQL Server app (no tie in to MySQL) I got the same error.

很容易的修复(和你的MySQL应用程序利用仍然应该只是罚款)。只是注释掉相应的.NET framwework machine.config中MySQL参考(S)。

Easy enough fix (and your MySQL utilizing apps should still work just fine). Just comment out the MySQL reference(s) in the appropriate .NET framwework machine.config.

请注意:网页错误是会告诉你什么machine.config文件(和行号)是违规

NOTE: the web page the error is on will tell you what machine.config file (and line number) is offending.

下面的链接更详细的:

http://forums.asp.net/t/1928379.aspx

这篇关于无法加载mysql.web总成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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