-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Exception with MySQLDataDriver
PostPosted: Mon Mar 13, 2006 10:41 am 
Newbie

Joined: Wed Feb 01, 2006 9:44 am
Posts: 7
Hi,

i would build me a sessionfactory but it comes the following exception:

Code:
System.Exception: Could not create the driver from NHibernate.Driver.MySqlDataDriver. ---> System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> NHibernate.HibernateException: The IDbCommand and IDbConnection implementation in the assembly MySql.Data could not be found.  Please ensure that the assembly MySql.Data is in the Global Assembly Cache or in a location that NHibernate can use System.Type.GetType(string) to load the types from.
   bei NHibernate.Driver.ReflectionBasedDriver..ctor(String driverAssemblyName, String connectionTypeName, String commandTypeName)
   bei NHibernate.Driver.MySqlDataDriver..ctor()
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   bei System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   bei System.Activator.CreateInstance(Type type, Boolean nonPublic)
   bei System.Activator.CreateInstance(Type type)
   bei NHibernate.Connection.ConnectionProvider.ConfigureDriver(IDictionary settings)
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei DataAccessLayer.DbManager..ctor() in C:\Dokumente und Einstellungen\Esat\Eigene Dateien\Visual Studio 2005\Projects\DataAccessLayer\Manager\DbManager.cs:Zeile 74.
   bei Service.Login(String userName, String password) in c:\Dokumente und Einstellungen\Esat\Eigene Dateien\Visual Studio 2005\WebSites\TripunktWebdienst\App_Code\Service.cs:Zeile 33.


i have a refenrece to the mysql.data.dll...what is wrong?

thX
yesso


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 13, 2006 10:48 am 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
Maybe the DLL is not being copied to the appropriate runtime directory ( 'bin' for web apps and 'bin\[Debug|Release]' for console or WinForms apps)?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.