在mysql官网上下载了 mysql-connector-net-6.6.4 .msi但是在本地安装失败!
失败日志如下:
ction 17:03:24: VS11_UpdatePackageFile.
SFXCA: Extracting custom action to temporary directory: C:\WINDOWS\Installer\MSI9D.tmp-\
SFXCA: Binding to CLR version v2.0.50727
Calling custom action MySql.ConnectorInstaller!MySql.ConnectorInstaller.CustomActions.UpdateFlagPackagesFileForVS2012
Error: could not load custom action class MySql.ConnectorInstaller.CustomActions from assembly: MySql.ConnectorInstaller
System.BadImageFormatException: Could not load file or assembly 'MySql.ConnectorInstaller' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
File name: 'MySql.ConnectorInstaller'
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.AppDomain.Load(String assemblyString)
at Microsoft.Deployment.WindowsInstaller.CustomActionProxy.GetCustomActionMethod(Session session, String assemblyName, String className, String methodName)
我使用的C# 和数据库之间的操作!