« Previous Next »

Thread: Could not load file or assembly 'MySql.Web, Version=5.2.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.

Last post 06-25-2009 12:43 PM by mattyj. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 06-25-2009, 12:37 PM

    • mattyj
    • Not Ranked
    • Joined on 06-25-2009, 12:27 PM
    • Posts 2

    Could not load file or assembly 'MySql.Web, Version=5.2.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.

     Hi

    I just installed the WPI 2.0 RC on my Vista SP1 desktop to try it out, and tried to install a WordPress blog (FYI MySQL was already installed, the rest of the "package" wasn't). Also, if it matters, I did it whilst I had Visual Studio (2008  Pro) and SQL Server 2005 Management Studio open, and was working on another .NET project.

    Once it had almost finished installing, I got to the point where I needed to refresh my local website .NET page that I was working on, and I then got the following error and it is not resolved after the installation is now complete:

    Server Error in '/' Application.

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Could not load file or assembly 'MySql.Web, Version=5.2.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.

    Source Error:

    Line 157:        <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    Line 158: <add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    Line 159: <add name="MySQLRoleProvider" type="MySql.Web.Security.MySQLRoleProvider, MySql.Web, Version=5.2.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="LocalMySqlServer" applicationName="/" />
    Line 160: </providers>
    Line 161: </roleManager>

    Source File: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\machine.config    Line: 159

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'MySql.Web, Version=5.2.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


    Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074



    I'm more posting this as a bug, however I haven't fixed it just yet either so if you know what's wrong please let me know. I gather that the MySQL.Web assembly didn't make it in to the GAC, but I'll find out shortly I guess...!


    Cheers

    Matt

  • 06-25-2009, 12:43 PM In reply to

    • mattyj
    • Not Ranked
    • Joined on 06-25-2009, 12:27 PM
    • Posts 2

    Re: Could not load file or assembly 'MySql.Web, Version=5.2.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.

     Huh.

     Now it works (I didn't nothing). Perhaps it needed an app restart/recycle or similar to notice the assembly, as it is in the GAC now.

    Cheers

    Matt

Page 1 of 1 (2 items)
Microsoft Communities