+ Reply to Thread
Results 1 to 4 of 4

Thread: MySql + ASP.net Connections problem..

  1. #1
    monsterhit is offline x10Hosting Member monsterhit is an unknown quantity at this point
    Join Date
    Aug 2009
    Posts
    1

    MySql + ASP.net Connections problem..

    i m getting this error while using MySql variables like in my asp.net website
    # Host = 'localhost'
    # Port = '3306'
    # User = [Your cPanel username followed by an underscore and the MySQL username you configured in cPanel]
    # Pass = [The password that you used when creating the MySQL user]
    # Database = [ Your cPanel username followed by an underscore and the name of the database that you created in cPanel]

    Server Error in '/' Application

    --------------------------------------------------------------------------------

    Connection refused
    Description: HTTP 500. Error processing request.

    Stack Trace:

    System.Net.Sockets.SocketException: Connection refused
    at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remote_end) [0x00000]
    at System.Net.Sockets.Socket+Worker.Connect () [0x00000]


    code:

    MySqlConnection cn = new MySqlConnection("Server=localhost;Database=rajbaj_ database;Uid=rajbaj_rajeev;Pwd=;");
    cn.Open();



    __________________________________________________ ______________

    and also when i m using,, System.Data.Obdc

    then i m getting this error

    libodbc.so

    Description: HTTP 500. Error processing request.

    Stack Trace:

    System.DllNotFoundException: libodbc.so
    at (wrapper managed-to-native) System.Data.Odbc.libodbc:SQLAllocHandle (System.Data.Odbc.OdbcHandleType,intptr,intptr&)
    at System.Data.Odbc.OdbcConnection.Open () [0x00000]

    so i m not able to use mysql database provided by the x10hosting,
    however i downloaded a php script to test connection to database,, it is working in php..

    but i want to use mysql database in my ASP.net Website..
    Thanking you

    __________________________________________________ ______________

    and also after trying above two i tried connecting to a ms access database...
    it again shows me error like

    gda-2

    Description: HTTP 500. Error processing request.

    Stack Trace:

    System.DllNotFoundException: gda-2
    at (wrapper managed-to-native) System.Data.OleDb.libgda:gda_init (string,string,int,string[])
    at System.Data.OleDb.OleDbConnection.Open () [0x00000]
    at (wrapper remoting-invoke-with-check) System.Data.OleDb.OleDbConnection:Open ()
    at _Default.Page_Load (System.Object sender, System.EventArgs e) [0x00000]
    at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00000]
    at System.Web.UI.Control.LoadRecursive () [0x00000]
    at System.Web.UI.Page.ProcessLoad () [0x00000]
    at System.Web.UI.Page.ProcessPostData () [0x00000]
    at System.Web.UI.Page.InternalProcessRequest () [0x00000]
    at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]


    so i was unable to use database connectivity through asp.net c#

    please solve my problems or tell me a better way to connect to mysql database through c# asp.net

    reply as soon as possible..
    thanking you
    Last edited by monsterhit; 08-17-2009 at 12:09 PM.

  2. #2
    thearchedone is offline x10Hosting Member thearchedone is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    18

    Re: MySql + ASP.net Connections problem..

    Hi,

    Did you ever solve this? I'm also getting the DllNotFoundException error:

    System.DllNotFoundException: gda-2
    at (wrapper managed-to-native) System.Data.OleDb.libgda:gda_init (string,string,int,string[])
    at System.Data.OleDb.OleDbConnection.Open () [0x00000]

    Please can someone help me out?

    Thanks in advance

    TAO

  3. #3
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: MySql + ASP.net Connections problem..

    Since X10 runs a Linux distro rather than a version of Windows, it has to use Mono for ASP.Net support. Read the thread "ASP.NET 'DllNotFoundException: gdiplus.dll'" for more info.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  4. #4
    zegnhabi's Avatar
    zegnhabi is offline x10Hosting Member zegnhabi is an unknown quantity at this point
    Join Date
    Jul 2009
    Location
    On The Net
    Posts
    43

    Re: MySql + ASP.net Connections problem..

    Ya probaste en agregar el nombre de servidor que te da PHPMyAdmin!?
    Yo Soy SQLero, ¿Y Tú?


+ Reply to Thread

Similar Threads

  1. asp.net and mysql connection problems
    By diesel543 in forum Programming Help
    Replies: 6
    Last Post: 08-16-2009, 09:04 AM
  2. Problem with ASP.NET website
    By yannhuet in forum Free Hosting
    Replies: 1
    Last Post: 08-06-2009, 09:38 AM
  3. Connect to MySql (asp.net)
    By shdus1 in forum Programming Help
    Replies: 1
    Last Post: 08-02-2009, 02:06 PM
  4. Problem using MYSQL with ASP.NET
    By hansruedi in forum Programming Help
    Replies: 3
    Last Post: 04-24-2009, 03:50 AM
  5. WP-DBManager plugin MySQL problem
    By jaimeayala in forum Free Hosting
    Replies: 3
    Last Post: 03-12-2008, 09:22 PM

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