Problem using MYSQL with ASP.NET

hansruedi

New Member
Messages
5
Reaction score
0
Points
0
Hellou,

I'm using the MySql.Data assembly which was installed with the "MySQL Connector Net 5.2.5".
As soon as I include this assembly in my Web.Config I get the following error message:
Parser Error

Description: Error parsing a resource required to service this request. Review your source file and modify it to fix this error.
Parser Error Message: Assembly MySql.Data, Version=5.2.5.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D not found

I think this resource isn't installed on the x10hosting. How can I access the MYSQL Database with ASP.NET? Isn't it possible?

Thanks for your help!:happysad:

Regards
Edit:
After changing the version to "MySQL Connector Net 1.0.7" there's no problem with the reference but it's still not working. Now I get the following error message when I try to open a connection:

Server Error in '/' Application

Connection unexpectedly terminated

Description: HTTP 500. Error processing request.
Stack Trace:
MySql.Data.MySqlClient.MySqlException: Connection unexpectedly terminated at MySql.Data.MySqlClient.PacketReader.ReadHeader () [0x00000] at MySql.Data.MySqlClient.PacketReader.OpenPacket () [0x00000] at MySql.Data.MySqlClient.NativeDriver.Open () [0x00000] at MySql.Data.MySqlClient.Driver.Create (MySql.Data.MySqlClient.MySqlConnectionString settings) [0x00000] at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000]
Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433
Edit:
Help?????
 
Last edited:

fastidio

New Member
Messages
3
Reaction score
0
Points
0
I think you have to include mysql.data.dll in Bin directory.

I try to use the same library but I have a different error: mono can't see my .cs class (that is the connection class to database of my site ) so I don't know if putting the dll in Bin you resolve your problem.
 

hansruedi

New Member
Messages
5
Reaction score
0
Points
0
I've already put it into the bin directory. :( Which version do I have to use?
 
Top