1

Closed

Please Help: MySql.Data, Version=6.3.5.0 ... could not be louded

description

I am using Phalanger 2.1 with Visual Studio 2010, but whenever I add phalangermysql (MySql.Data.dll) and try to run I get this error. Please how do I do this again?
 
System.Configuration.ConfigurationErrorsException was unhandled
Message=Library assembly 'MySql.Data, Version=6.3.5.0, Culture=neutral, PublicKeyToken=2771987119c16a03' could not be loaded. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Source=PhpNetCore
BareMessage=Library assembly 'MySql.Data, Version=6.3.5.0, Culture=neutral, PublicKeyToken=2771987119c16a03' could not be loaded. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Line=0
StackTrace:
   at PHP.Core.AssemblyLoader.Load(String assemblyName, Uri assemblyUrl, LibraryConfigStore config)
   at PHP.Core.Reflection.PureAssembly.LoadCompileTimeReferencedAssemblies(AssemblyLoader loader)
   at PHP.Core.AssemblyLoader.Load(Assembly realAssembly, LibraryConfigStore config)
   at PHP.Core.ScriptContext.RunApplication(Delegate mainRoutine, String relativeSourcePath, String sourceRoot)
   at <Global>.Run()
InnerException: System.Reflection.ReflectionTypeLoadException
   Message=Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   Source=mscorlib
   StackTrace:
        at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
        at System.Reflection.RuntimeModule.GetTypes()
        at System.Reflection.Assembly.GetTypes()
        at PHP.Core.Reflection.ClrModule.ReflectTypes(Assembly realAssembly, Dictionary`2 types)
        at PHP.Core.Reflection.ClrModule.Reflect(Boolean full, Dictionary`2 types, Dictionary`2 functions, DualDictionary`2 constants)
        at PHP.Core.ApplicationContext.LoadModuleEntries(DModule module)
        at PHP.Core.AssemblyLoader.Load(Assembly realAssembly, LibraryConfigStore config)
        at PHP.Core.AssemblyLoader.Load(String assemblyName, Uri assemblyUrl, LibraryConfigStore config)
   InnerException:
Closed May 25, 2011 at 12:18 PM by jakub
You are loading wrong assembly, please read the examplehere http://phalangermysql.codeplex.com/releases/view/66032or here http://www.php-compiler.net/blog/2011/wordpress-on-net-4-0or from within the comment inside the release archive.Also you probably did not install both assemblies (PhpNetMySql.dll and Mysql.Data.dll) into the GAC or into the folder together with your application.Closing

comments