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 37: 		strSelect = "SELECT s.id, s.title, CONCAT(LEFT(s.description, 255), '...') AS description, price, ss.title AS size FROM stock s LEFT OUTER JOIN size_price_lookup spl ON spl.stock_id = s.id INNER JOIN stock_sizes ss ON ss.id = spl.size_id WHERE spl.id =  (SELECT id FROM size_price_lookup WHERE price = (SELECT MIN(price) FROM size_price_lookup WHERE stock_id = s.id) AND stock_id = s.id LIMIT 1) AND s.id IN (SELECT stock_id FROM category_stock_lookup WHERE category_id = " + intCatID.ToString() + ") AND visible > 0 ORDER BY s.title";
Line 38: 
Line 39: 		categoryTitle.InnerHtml = PMCategory.GetTitle(intCatID);
Line 40: 	
Line 41: 		lblCatDesc.InnerHtml = PMCategory.GetDescription(intCatID);

Source File: d:\inetpub\domains\mkccresources.prominenthosting.com\wwwroot\products.aspx    Line: 39

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.PMCategory.GetTitle(Int32 intCategoryID) +0
   ASP.products_aspx.Page_Load(Object s, EventArgs e) in d:\inetpub\domains\mkccresources.prominenthosting.com\wwwroot\products.aspx:39
   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