เขียน ASP.NET/C# connect MySql ในเครื่อง local รันได้ แต่อัพขึ้นโฮสแล้ว err. ครับ รบกวนผู้รู้ด้วยครับ
ใช้ VS2010 using MySql.Data.MySqlClient; แล้ว
Quote:
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=6.2.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 8: <compilation debug="false" targetFramework="4.0">
Line 9: <assemblies>
Line 10: <add assembly="MySql.Data, Version=6.2.5.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
Line 11: <add assembly="MySql.Data.Entity, Version=6.2.5.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
Line 12: <add assembly="MySql.Web, Version=6.2.5.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/></assemblies></compilation>
Assembly Load Trace: The following information can be helpful to determine why the assembly 'MySql.Data, Version=6.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:4.0.30319; ASP.NET Version:4.0.30319.1
Tag : ASP.NET, MySQL, Web (ASP.NET), VB.NET, C#, VS 2010 (.NET 4.x)