Godaddy.com and MySql.Data.dll problems.

Last post 11-06-2009 4:20 AM by andyste1. 55 replies.

Sort Posts:

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

    03-29-2007, 3:37 PM
    • Participant
      1,863 point Participant
    • WishStar99
    • Member since 08-05-2006, 12:11 AM
    • VietNam
    • Posts 553

    Hey,

    You get this ".NET Data Provider not Found, tring to use the sqlDataSource control." because you are missing the MySQL.dll file in your bin folder.

    If my memory is not wrong, I remember seeing an URL in this thread where you can download the file. If  you cannot find it, I can give you my MySQL.dll file. CHEER

    //---------------------------------------------//
    //------------------- Chloé ------------------//
    //---------------------------------------------//
  • Re: Godaddy.com and MySql.Data.dll problems.

    03-29-2007, 3:38 PM
    • Participant
      1,863 point Participant
    • WishStar99
    • Member since 08-05-2006, 12:11 AM
    • VietNam
    • Posts 553

    Sorry for the error: The file name is MySQL.Data.dll

    //---------------------------------------------//
    //------------------- Chloé ------------------//
    //---------------------------------------------//
  • Re: Godaddy.com and MySql.Data.dll problems.

    04-13-2007, 7:24 AM
    • Member
      20 point Member
    • irfan_mcsd
    • Member since 02-19-2007, 6:01 AM
    • Islamabad
    • Posts 5
    Hi, make MySQL DLL Compatible for running in Medium Trust Level, and request for MYSQL Port Number from Godaddy and used this port number in your Connection string, this will fix your problem.
    Muhammad Irfan
    MCAD / MCSD / MCPD
    Solution Architect .NET
  • Re: Godaddy.com and MySql.Data.dll problems.

    04-16-2007, 5:41 PM
    • Member
      19 point Member
    • WHGibbo
    • Member since 04-20-2005, 1:37 PM
    • Posts 9

    Hi,
    Was wondering if anybody could shed any light on my problem, that I have with godaddy....

    I'm using the adapted version of the club starter kit, using mysql for the datasource.  I 'm using the mySql.Net Connector that somebody uploaded onto RiverSprint.  And now have all the pages, except one working :(

    The page that isn't working is the events_calendar.aspx, i'm getting the following error:

     Could not load file or assembly 'MySql.Data, Version=1.0.7.0, Culture=neutral, PublicKeyToken=33a1c5bf06bf72d7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    my web.config has the following:

    <system.data>
    <
    DbProviderFactories>
    <
    add name="MySql Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySql" type="MySql.Data.MySqlClient.MySqlFactory, MySql.Data, Version=1.0.7.0, Culture=neutral, PublicKeyToken=33a1c5bf06bf72d7"/>
    </
    DbProviderFactories>
    </
    system.data>

    Any ideas what the problem could be? I'm thinking it has something to do with the publickeytoken?  but not sure...
    Thanks 

    Gibbo

    Gibbo
  • Godaddy.com .

    05-30-2007, 10:24 AM
    • Member
      4 point Member
    • Hira Mohan
    • Member since 05-17-2007, 12:58 PM
    • Posts 2

     Hi,

          i am using godaddy server for both our applcation and database as well.

         when i try to run a page without database interaction.it runs successfully. but when i try to run a page that has the interaction with database it always prompt error.

         i.e.;

     

    Security Exception

    Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

    Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    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:

    [SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
    System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
    System.Security.CodeAccessPermission.Demand() +59
    System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +678
    System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +114
    System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName) +80
    System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName, Boolean assertPermissions) +115
    System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName) +7
    System.Configuration.Internal.DelegatingConfigHost.OpenStreamForRead(String streamName) +10
    System.Configuration.UpdateConfigHost.OpenStreamForRead(String streamName) +42
    System.Configuration.BaseConfigurationRecord.InitConfigFromFile() +443


    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

     

        So could anyone suggest/help me to figure out the solution of this appropriate problem.

     

      Thanks in advance.

      Regards:

      Hira Mohan
     

    Filed under:
  • Re: Godaddy.com .

    07-30-2007, 11:53 PM
    • Member
      2 point Member
    • cchance
    • Member since 07-31-2007, 3:48 AM
    • Posts 1

    need help guys im stuck where you guys were... i got the dll loading (the good one with medium trust) and now i ran into the other issue

    "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 was wondering if you found a way to get it fixed because im stuck on the same bug... any help would be MUCH appreciated. I tried adding port=3306 and even the polling=false thing both didnt change anything, i tried using the localhost database and tried a remote database, regardless i get the above error... PLEASE HELP

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

    01-05-2008, 9:12 PM
    • Member
      181 point Member
    • Sojan80
    • Member since 10-28-2004, 7:59 AM
    • WI
    • Posts 190

     To use MySql 5 on GoDaddy do you still need Connector 1.0 whebert refers to or has all this been resolved with connector 5.1? Anyone know?

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

    04-21-2009, 1:08 AM
    • Member
      12 point Member
    • hariomtatsat
    • Member since 03-09-2009, 7:32 AM
    • Posts 6

    hi,

    I have also the same problem in mysql.data.dll. it couldn't add the assembly reference.

    I am just a beginner.  Crying .

    Please somebody help me to fix this.it ios urgent.

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

    06-15-2009, 7:56 AM
    • Member
      5 point Member
    • andyste1
    • Member since 08-29-2007, 8:07 AM
    • Posts 11

    Hi

    If you drop a newer version of MySql.Data.dll into your \bin folder you might need to add a binding redirect in web.config to force other assemblies in your app to reference the newer dll. Obviously replace the version numbers with those relevant to you:

    <runtime>
    <
    assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
       <dependentAssembly>
          <
    assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d"/>
          <
    bindingRedirect oldVersion="5.0.7.0" newVersion="6.0.4.0"/>
       </
    dependentAssembly>
    </
    assemblyBinding>
    </
    runtime>

     Andrew

     

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

    11-05-2009, 6:06 PM
    • Star
      7,646 point Star
    • thuhue
    • Member since 09-18-2003, 1:54 PM
    • Posts 2,244

    Is Godaddy a good host for ASP.NET sites?

    I am especially interested in backend databases performance. Please provide more feedback on maintenance issues of MSSQLServer and MySQL databases there.

    Please mark the post(s) that have helped you as "Answer"
  • Re: Godaddy.com and MySql.Data.dll problems.

    11-06-2009, 4:20 AM
    • Member
      5 point Member
    • andyste1
    • Member since 08-29-2007, 8:07 AM
    • Posts 11

    I've been using it for a few months now and found it to be good for the price. Can't comment on performance as my website isn't really heavy on db usage. I'm using Sitefinity CMS with a SQL Server database. You get the run-of-the-mill Plesk control panel and the web-based database mgt tool (which isn't great, basically you can only run queries). However there is an option in the control panel to upload a database backup and restore it into your database.

    I had issues with MySql but that was more to do with Sitefinity not liking GoDaddy's custom medium trust environment, and I was never able to get Sitefinity working with MySql - shame as my hosting plan provides only 1 SQL db but 10 (I think) MySql dbs.

    Andrew

    www.websitesandmore.co.uk

     

     

Page 4 of 4 (56 items) < Previous 1 2 3 4