Installation error MySql.Data, Version=5.2.2.0

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
11/16/2008 4:12:26 PM
Gravatar
Total Posts 88

Installation error MySql.Data, Version=5.2.2.0

Hi Joe,

I am trying to deploy Mojoportal on a host server (webhostforasp.net). I tried to install MP directly rather than use their automated installer.

I've uploaded the latest version of MP, and imported my MYSQL db. However when I try to run the site I get the following error message. I tried to add the assembly key (not that I am sure what that means, but I saw it on another forum post) <add assembly="MySql.Data, Version=5.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /> to the web.config file but that didn't help so I've deleted it again. Are you able to help at all?

Many thanks in advance,

Kind Regards

Leah

 

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.Data, Version=5.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The module was expected to contain an assembly manifest.

Source Error:

Line 971: <add assembly="Microsoft.Web.Preview, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 972:
Line 973: <add assembly="MySql.Data, Version=5.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
Line 974:
Line 975: </assemblies>


Source File: C:\Clients\[]\[]\public_html\web.config Line: 973

Assembly Load Trace: The following information can be helpful to determine why the assembly 'MySql.Data, Version=5.2.2.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.3053; ASP.NET Version:2.0.50727.3053

 

 

11/16/2008 4:14:11 PM
Gravatar
Total Posts 88

Re: Installation error MySql.Data, Version=5.2.2.0

Sorry, please ignore the last error message, that was the one I got when I tried to add a key to the web.config file.

The error message I am getting is as follows:

Server Error in '/' Application.
Could not load file or assembly 'MySql.Data, Version=5.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The module was expected to contain an assembly manifest.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'MySql.Data, Version=5.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The module was expected to contain an assembly manifest.

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.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'MySql.Data, Version=5.2.2.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].


Stack Trace:

[BadImageFormatException: Could not load file or assembly 'MySql.Data, Version=5.2.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The module was expected to contain an assembly manifest.]
mojoPortal.Data.DBTaskQueue.GetUnfinished() +0
mojoPortal.Business.TaskQueue.GetUnfinished() +8
mojoPortal.Web.WebTaskManager.StartOrResumeTasks(Boolean appWasRestarted) +35
mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e) +316


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

11/16/2008 4:39:08 PM
Gravatar
Total Posts 88

Re: Installation error MySql.Data, Version=5.2.2.0

Sorry, you can ignore both my messages now. I played around a bit more, reloaded the DLLs and that did the trick. Something funny seemed to be happening on uploading the DLLs - I had to re-load more than one (I'm using Filezilla) as I was getting different error messages.

But it's all working now.

Thanks...
Leah

11/17/2008 6:53:27 AM
Gravatar
Total Posts 18439

Re: Installation error MySql.Data, Version=5.2.2.0

It sounds like it was initially a partial file like it failed to upload completely.

Glad its working.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.