Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: MySql Connector

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Smile MySql Connector

    I am running SUSE 10.3. I am developing under windows using mono and the MySql connector. I am using the Membership provider. Under windows everything works, I can add to the MySql Database. The problem is when I publish the program to Linux. I have striped out everything and have a blank default.aspx, when the program tries to startup I get an error message "Could not find type: MySql.Web.Security.MembershipProvider, MySql.Web Version...." The problem seems to be in my web.config. I have MySql.Data in GAC. Any ideas. Thank you kindly. This is the config:
    <?xml version="1.0"?>
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    <configuration xmlns="">
    <remove name="LocalMySqlServer" />
    <add name="LocalMySqlServer" connectionString="Data Source=localhost;Database=globalhealthusa;Uid=root ;Pwd=bullen;"
    <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient"
    description=".Net Framework Data Provider for MySQL"
    type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data,
    Version=, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />

    Set compilation debug="true" to insert debugging
    symbols into the compiled page. Because this
    affects performance, set this value to true only
    during development.

    Visual Basic options:
    Set strict="true" to disallow all data type conversions
    where data loss can occur.
    Set explicit="true" to force declaration of all variables.
    <roleManager enabled="true" defaultProvider="MySQLRoleProvider" />
    <compilation debug="true" strict="false" explicit="true">
    <add assembly="MySql.Data, Version=, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>

    <add namespace="System"/>
    <add namespace="System.Collections"/>
    <add namespace="System.Collections.Specialized"/>
    <add namespace="System.Configuration"/>
    <add namespace="System.Text"/>
    <add namespace="System.Text.RegularExpressions"/>
    <add namespace="System.Web"/>
    <add namespace="System.Web.Caching"/>
    <add namespace="System.Web.SessionState"/>
    <add namespace="System.Web.Security"/>
    <add namespace="System.Web.Profile"/>
    <add namespace="System.Web.UI"/>
    <add namespace="System.Web.UI.WebControls"/>
    <add namespace="System.Web.UI.WebControls.WebParts"/>
    <add namespace="System.Web.UI.HtmlControls"/>

    The <authentication> section enables configuration
    of the security authentication mode used by
    ASP.NET to identify an incoming user.
    <authentication mode="Forms"/>

    <membership defaultProvider="MySqlMembershipProvider">
    <add name="MySqlMembershipProvider"
    type="MySql.Web.Security.MySqlMembershipProvider, MySql.Web,;Version=, Culture=neutral, PublicKeyToken=c5687fc88969c44d"
    passwordAttemptWindow="10" />
    The <customErrors> section enables configuration
    of what to do if/when an unhandled error occurs
    during the execution of a request. Specifically,
    it enables developers to configure html error pages
    to be displayed in place of a error stack trace.

    <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
    <error statusCode="403" redirect="NoAccess.htm" />
    <error statusCode="404" redirect="FileNotFound.htm" />

  2. #2
    the missing dll is MySql.Web.dll found in C:\Program Files\MySQL\MySQL Connector Net 5.2.X\Web Providers\

    I'm interested in your Mono experience, please join my blog for ASP.NET with mysql posts :

    Thanks !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts