Server Error in '/' Application.

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

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.IO.FileLoadException: Could not load file or assembly 'MySql.Data, Version=1.0.4.20163, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:


Line 159:	txtQuantity.CssClass = "txttiny";
Line 160:	
Line 161:	if (PMStock.HasFiles(intStockID)) ProductDescription.InnerHtml += "<br /><br /><strong>This is a downloadable software product - once you have purchased it you will be given instructions on how to download it.</strong>";
Line 162:}
Line 163:

Source File: d:\inetpub\domains\mkccresources.prominenthosting.com\wwwroot\productdetails.aspx    Line: 161

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


[FileLoadException: Could not load file or assembly 'MySql.Data, Version=1.0.4.20163, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   PM.PMStock.HasFiles(Int32 intStockID) +0
   ASP.productdetails_aspx.Page_Load(Object s, EventArgs e) in d:\inetpub\domains\mkccresources.prominenthosting.com\wwwroot\productdetails.aspx:161
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4063.0