View Single Post
Old 12-04-2004, 02:45 AM   #1 (permalink)
popyweb
Registered User
 
popyweb's Avatar
 
Join Date: Dec 2004
Posts: 2
popyweb is on a distinguished road
mysql and ASP.Net

I'm trying to write a simple Web Application in C#. To connect to mySQL DB I'm using the opensource driver "MySQLDriverCS" (see Sourceforge.net).
The web server is hosted by a Service Provider so I don't have access to configuration.
I think I did everything right but when I try to access the page I retrieve the following error:


Unable to load DLL (libmySQL.dll).
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).

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:

[DllNotFoundException: Unable to load DLL (libmySQL.dll).]
MySQLDriverCS.CPrototypes.mysql_init(Void* must_be_null) +0
MySQLDriverCS.MySQLConnection.Open() +255
TestASPnet.WebForm1.Page_Load(Object sender, EventArgs e) +100
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731


I tryied to copy the library into my webspace with no good result.

Can someone please help me? You can find the webform at: http://www.popyweb.com/TestASPnet/WebForm1.aspx
popyweb is offline   Reply With Quote