the question's title pretty says all.
i wanted so, because every time publish or create installer installer project, failed because cannot connect mysql.
the error says :
unable find requested .net framework data provider. may not installed.
in development pc, mysql.data added gac doesn't create problem.
can done? set copy local = true.
this current fluentconfiguration :
_sessionfactory = fluently.configure() .database(mysqlconfiguration .standard .connectionstring(_systemsetting.connectionstring) .provider("mysql.data.mysqlclient") .driver<nhibernate.driver.mysqldatadriver>()) .mappings(m => m.fluentmappings.addfromassemblyof<employeemap>()) .buildsessionfactory(); thanks.
update : 
mysql.data.dll must reside beside assembly containing code posted. .provider("mysql.data.mysqlclient") , .driver<nhibernate.driver.mysqldatadriver>() redundant since specified mysqlconfiguration.standard set driver , provider.
Comments
Post a Comment