日期:2014-05-17  浏览次数:20533 次

.net Unable to load DLL 'libmySQL.dll': 拒绝访问。
asp.net 连接 mysql 报 Unable to load DLL 'libmySQL.dll': 拒绝访问。

这是放到服务器上报的错。在我本机是可以的。我将libmySQL.dll 已经复制到 C:\WINDOWS\system32 下了。。
HTML code


Server Error in '/' Application.
Unable to load DLL 'libmySQL.dll': 拒绝访问。 (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.DllNotFoundException: Unable to load DLL 'libmySQL.dll': 拒绝访问。 (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:




哪位大侠知道?




------解决方案--------------------

没有用过
------解决方案--------------------
WEB服务扩展允许.

IIS管理里的WEB服务扩展上,把ASP.NET设为允许.

也不排除权限。