Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
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
Old 12-04-2004, 07:24 AM   #2 (permalink)
rdove
Masked Moderator
 
rdove's Avatar
 
Join Date: May 2002
Location: Indianapolis, IN
Posts: 260
rdove is on a distinguished road
You have to install the MySQLDriverCS setup package on the server. Your program is most likely looking for your DLL in the GAC.
__________________
~Ryan

rdove is offline   Reply With Quote
Old 12-04-2004, 03:59 PM   #3 (permalink)
popyweb
Registered User
 
popyweb's Avatar
 
Join Date: Dec 2004
Posts: 2
popyweb is on a distinguished road
I cannot install it on the server as it's hosted... so what can you advice me to do? how may I connect to mysql db with .net?
popyweb is offline   Reply With Quote
Old 12-04-2004, 08:57 PM   #4 (permalink)
rdove
Masked Moderator
 
rdove's Avatar
 
Join Date: May 2002
Location: Indianapolis, IN
Posts: 260
rdove is on a distinguished road
If you server supports MySQL and .NET your hosting service should have a component you can use to connect to the MySQL database. I would contact your host and ask them about the component(s) they offer to their subscribers.
__________________
~Ryan

rdove is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
new to asp.net rmill9681 MS Technologies ( ASP, VB, C#, .NET ) 5 11-29-2004 08:05 AM
asp & asp.net sde Lounge 0 04-27-2004 01:28 PM
ASP.NET: Day / Work Week / Week / Month web calendar control with view like MS Outloo gicio MS Technologies ( ASP, VB, C#, .NET ) 0 12-10-2003 10:05 AM


All times are GMT -8. The time now is 10:59 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting