+ Reply to Thread
Results 1 to 4 of 4

Thread: Problem using MYSQL with ASP.NET

  1. #1
    hansruedi is offline x10Hosting Member hansruedi is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    5

    Problem using MYSQL with ASP.NET

    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 by hansruedi; 04-17-2009 at 09:10 AM. Reason: Automerged Doublepost

  2. #2
    fastidio is offline x10Hosting Member fastidio is an unknown quantity at this point
    Join Date
    Feb 2009
    Posts
    3

    Re: Problem using MYSQL with ASP.NET

    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.

  3. #3
    hansruedi is offline x10Hosting Member hansruedi is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    5

    Re: Problem using MYSQL with ASP.NET

    I've already put it into the bin directory. Which version do I have to use?

  4. #4
    hansruedi is offline x10Hosting Member hansruedi is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    5

    Re: Problem using MYSQL with ASP.NET

    Solution: it just doesnt work on x10hosting...

+ Reply to Thread

Similar Threads

  1. MySQL Problem
    By roropheno in forum Free Hosting
    Replies: 1
    Last Post: 04-08-2008, 09:30 PM
  2. Problem with mysql and php
    By niraj.kumar.ait in forum Programming Help
    Replies: 8
    Last Post: 03-26-2008, 06:08 AM
  3. Access a mysql database in asp.net
    By environ1 in forum Free Hosting
    Replies: 1
    Last Post: 11-11-2007, 10:44 AM
  4. Problem with MySQL database
    By Codycougar91 in forum Free Hosting
    Replies: 1
    Last Post: 07-14-2005, 10:49 PM
  5. Problem with MySQL
    By Bissli in forum Free Hosting
    Replies: 1
    Last Post: 07-11-2005, 11:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers