Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    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
    \Windows\Microsoft.Net\Framework\v2.x\Config
    -->
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <appSettings/>
    <connectionStrings>
    <remove name="LocalMySqlServer" />
    <add name="LocalMySqlServer" connectionString="Data Source=localhost;Database=globalhealthusa;Uid=root ;Pwd=bullen;"
    providerName="MySql.Data.MySqlClient"/>
    </connectionStrings>
    <system.data>
    <DbProviderFactories>
    <clear/>
    <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient"
    description=".Net Framework Data Provider for MySQL"
    type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data,
    Version=5.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
    </DbProviderFactories>
    </system.data>

    <system.web>
    <!--
    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">
    <assemblies>
    <add assembly="MySql.Data, Version=5.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
    </assemblies>
    </compilation>

    <pages>
    <namespaces>
    <clear/>
    <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"/>
    </namespaces>
    </pages>

    <!--
    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">
    <providers>
    <clear/>
    <add name="MySqlMembershipProvider"
    type="MySql.Web.Security.MySqlMembershipProvider, MySql.Web,;Version=5.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"
    autogenerateschema="true"
    connectionStringName="LocalMySqlServer"
    enablePasswordRetrieval="false"
    enablePasswordReset="true"
    requiresQuestionAndAnswer="false"
    applicationName="LoginControl"
    requiresUniqueEmail="true"
    passwordFormat="hashed"
    maxInvalidPasswordAttempts="5"
    minRequiredPasswordLength="5"
    minRequiredNonalphanumericCharacters="0"
    passwordAttemptWindow="10" />
    </providers>
    </membership>
    <!--
    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" />
    </customErrors>
    -->
    </system.web>
    </configuration>

  2. #2
    Just Joined!
    Join Date
    Aug 2008
    Posts
    1
    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 : blog.webunusual.com

    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
  •