Godaddy.com and MySql.Data.dll problems.

Last post 01-05-2008 9:12 PM by Sojan80. 51 replies.

Sort Posts:

  • Re: Godaddy.com and MySql.Data.dll problems.

    10-20-2006, 2:54 AM

    Hi,

    I'm doing the MySQL connection in the same way as mentioned but getting follwoing error:

    A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied

    I don't know  how to solve this one...

    Kindly suggest any solution...

    Thanks

     

  • Re: Godaddy.com and MySql.Data.dll problems.

    10-20-2006, 11:02 AM
    • Loading...
    • whebert
    • Joined on 05-27-2004, 1:33 PM
    • Posts 25
    Could you please post your code, including your connection string.  I haven't seen this error myself, so I'm unfamiliar with what might be causing it, but if you post the code, it should give somebody a better idea of what might be happending.
  • Re: Godaddy.com and MySql.Data.dll problems.

    11-21-2006, 11:48 PM
    • Loading...
    • kilfer
    • Joined on 11-22-2006, 4:36 AM
    • Posts 2

    Hi all,

    You can download the recompiled mysql.data.dll (with AllowPartiallyTrustedCallers attribute) from my website at http://www.riversprint.com/rs/downloads.aspx

    Cheers! :)

  • Re: Godaddy.com and MySql.Data.dll problems.

    11-22-2006, 6:58 PM
    • Loading...
    • typhoid
    • Joined on 08-10-2006, 1:14 PM
    • Posts 77

    kilfer,

     Thanks!  Saves me some time downloading, modifying, and compiling.

  • Re: Godaddy.com and MySql.Data.dll problems.

    11-23-2006, 10:33 PM
    • Loading...
    • kilfer
    • Joined on 11-22-2006, 4:36 AM
    • Posts 2
    You're welcome! :)
  • Re: Godaddy.com and MySql.Data.dll problems.

    11-28-2006, 8:54 PM
    • Loading...
    • WishStar99
    • Joined on 08-05-2006, 12:11 AM
    • VietNam
    • Posts 549

    Hello there,

    Ah, GoDaddy customers are here too? Sweet!

    I have a problem with MySQL from GoDaddy too. The problem is, I keep loosing connection to the database. Here's the Error. Please advice. Mucho thank you. =)

    ERROR [HY000] [MySQL][ODBC 3.51 Driver][mysqld-4.0.27-max-log]Lost connection to MySQL server during query

     

    WS

    Aeries' Coders
    Programmers' Forums at Advance Microtech


    Nothing is impossible when it comes to coding.
  • Re: Godaddy.com and MySql.Data.dll problems.

    11-29-2006, 2:29 PM
    • Loading...
    • whebert
    • Joined on 05-27-2004, 1:33 PM
    • Posts 25

    Ah yes, this was a familiar problem for me too when I was forced to rely on the ODBC driver to access MySQL from my GoDaddy shared-hosting account.  I'd continually get timeouts and other exception oddities.  Very frustrating and disheartening.

    You should switch from the ODBC connector to the MySQL Connector/Net provider discussed in this thread.

     That's why this thread was started, to get the far better MySQL Connector/NET working on GoDaddy's shared hosting.  GoDaddy has since enabled their shared hosts to be able to use the MySQL Connector/NET provider, all you need to do is place the (altered, recompiled) MySql.Data.dll into your /bin directory.

     Read this thread to find out how to get the MySql.Data.dll to work, or if you don't want to do that yourself, you can download the recompiled .dll from kilfer's post above on Nov 21.

    Let us know if switching fixes your problem.  After switching I never get timeouts and the connection seems very reliable - I don't even think about it anymore.  My users create several thousand records per week and I never get any exception reports.

    Regards,

    whebert

  • Re: Godaddy.com and MySql.Data.dll problems.

    11-29-2006, 3:05 PM
    • Loading...
    • WishStar99
    • Joined on 08-05-2006, 12:11 AM
    • VietNam
    • Posts 549

    Ja,

    When I found this thread, I was wondering. Hmmm you guys use a different connector. May be I was still in the stone-age. LOL. Sure it us frustrating when you see "OOOPSY TimeOut or Lost Conenction" Geeze. LOL.

     I will re-read this thread and give it a try. Will update this thread tomorrow morning after I switch to the new connector as mention in this thread. Thanks.

     

    WS

    Aeries' Coders
    Programmers' Forums at Advance Microtech


    Nothing is impossible when it comes to coding.
  • Re: Godaddy.com and MySql.Data.dll problems.

    11-30-2006, 6:39 PM
    • Loading...
    • WishStar99
    • Joined on 08-05-2006, 12:11 AM
    • VietNam
    • Posts 549

    No more "Oopsy Daisy" anymore. Switched and compiled and uploaded. Works great so far. No sign of "LOST CONNECTION". Thank Web. and all.

     Another question is, when are they going to upgrade to MySQL v5.0 ??? Hmmm I want to do some triggers and procedures. hmmmmmmm

     

     

    WS

    Aeries' Coders
    Programmers' Forums at Advance Microtech


    Nothing is impossible when it comes to coding.
  • Re: Godaddy.com and MySql.Data.dll problems.

    02-15-2007, 10:10 AM
    • Loading...
    • ibrahimersoy
    • Joined on 12-29-2006, 10:03 AM
    • Turkey
    • Posts 29

     i have tried everything you explained and got error like that

     

    Server Error in '/' Application.

    Compilation Error

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0246: The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)

    Source Error:

    Line 1:  <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
    Line 2:  <%@ Import Namespace="MySql.Data.MySqlClient" %>
    Line 3:  <%@ Import Namespace="System.Security" %>
    Line 4:  


    Source File: d:\hosting\ayzerwin\zirvedekiler\Default.aspx    Line: 2

    İm using Godaddy account with mysql and asp.net 2.0 and i dont know what to do Crying please help me

    C# Developer
  • Re: Godaddy.com and MySql.Data.dll problems.

    02-15-2007, 4:30 PM
    • Loading...
    • WishStar99
    • Joined on 08-05-2006, 12:11 AM
    • VietNam
    • Posts 549
    You have to drop the dll into your bin folder.
    Aeries' Coders
    Programmers' Forums at Advance Microtech


    Nothing is impossible when it comes to coding.
  • Re: Godaddy.com and MySql.Data.dll problems.

    03-14-2007, 12:48 PM

    Would any of this work with classic ASP?  If so, how?  I'm getting a ton of errors similar to those described on this board:

     "[MySQL][ODBC 3.51 Driver][mysqld-4.0.27-max-log]MySQL server has gone away"

     

    I'm also hosted at GoDaddy on a shared server running ASP connecting to MySQL.
     

  • Re: Godaddy.com and MySql.Data.dll problems.

    03-16-2007, 6:07 PM
    • Loading...
    • JoshStodola
    • Joined on 01-16-2007, 9:17 AM
    • Heartland of America
    • Posts 3,025

    Hey, I remember having this problem when I first started using MySQL.

    Called their support and they told me what I had to do in minutes.  It involved opening up a project in Visual Studio (I believe it was C#) and I had to change one line of code, and then compile everything in Release mode.  Brought in the new DLL and everything works great.

    I love MySQL!  Open source (free!!!), and super fast.  I like it better than SQL Server, honestly.

    But then again, I am an open-source kinda guy (lol I am now developing a blog to run on apache with Mysql - both open source).  Which is why I am sometimes confused that I code using ASP.NET and not PHP.  Who am I kidding?  PHP aint got nothin on ASP!

    Josh Stodola ← Come check out my blog!
  • Re: Godaddy.com and MySql.Data.dll problems.

    03-22-2007, 8:18 PM
    What is the line you had changed ?
  • Re: Godaddy.com and MySql.Data.dll problems.

    03-25-2007, 11:44 AM
    • Loading...
    • Darl
    • Joined on 03-25-2007, 3:20 PM
    • Posts 1

    Hi All,

    Am glad i found this forum, I was hit with .NET Data Provider not Found, tring to use the sqlDataSource control.

    Now that I seen posting on the forum, I have moved my Data Binding into Code Behine and have uploaded the re-complied dll, but not am getting the

    "System.Net.Sockets.SocketException: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied"

    this error is thrown on line 30 (see code blow)

    GoDaddy still said a script problem and not server problem, Have anybody come across this and you did you solve the problem.

     Thanks for any help.

    Here is my Code: default.aspx.cs

    1    using System;
    2    using System.Data;
    3    using System.Configuration;
    4    using System.Web;
    5    using System.Web.Security;
    6    using System.Web.UI;
    7    using System.Web.UI.WebControls;
    8    using System.Web.UI.WebControls.WebParts;
    9    using System.Web.UI.HtmlControls;
    10   using MySql.Data.MySqlClient;
    11   
    12   
    13   public partial class _Default : System.Web.UI.Page 
    14   {
    15       protected void Page_Load(object sender, EventArgs e)
    16       {
    17           string MyConString = "Server=localhost;Port=3306;Database=mydatabase;Uid=root;Pwd='mypassword';";
    18           MySqlConnection MyConnection = new MySqlConnection(MyConString);
    19   
    20           string queryString = "SELECT * FROM tb_storelinks";
    21   
    22           MySqlCommand MyCommand = new MySqlCommand();
    23           MyCommand.CommandText = queryString;
    24           MyCommand.Connection = MyConnection;
    25   
    26           MySqlDataAdapter dataAdapter = new MySqlDataAdapter();
    27           dataAdapter.SelectCommand = MyCommand;
    28           System.Data.DataSet dataSet = new System.Data.DataSet();
    29         
    30               dataAdapter.Fill(dataSet);
    31   
    32               gView.DataSource = dataSet;
    33               gView.DataBind();
    34   
    35           
    36   
    37       }
    38   }
    

     

    default.aspx:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server" />
            <div style="margin-left:auto; margin-right:auto; width:auto; ">
            <h1>Test Site</h1>        <p />
              <asp:GridView ID="gView" runat="server" AutoGenerateColumns="False" DataKeyNames="PKID">
                <Columns>
                  <asp:BoundField DataField="PKID" HeaderText="PKID" ReadOnly="True" SortExpression="PKID" />
                  <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                  <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
                  <asp:BoundField DataField="ImageUrl" HeaderText="ImageUrl" SortExpression="ImageUrl" />
                  <asp:BoundField DataField="Importance" HeaderText="Importance" SortExpression="Importance" />
                  <asp:BoundField DataField="URL" HeaderText="URL" SortExpression="URL" />
                </Columns>
              </asp:GridView>
              <br />
              <asp:Label runat="server" ID="Label_Error" /></div>
        </form>
    </body>
    </html>
    
     
Page 3 of 4 (52 items) < Previous 1 2 3 4 Next >