mono+jexus 之连接数据库

System.ArgumentException

Unable to find the requested .Net Framework Data Provider. It may not be installed.

Description: HTTP 500.Error processing request.

Details: Non-web exception. Exception origin (name of application or object): System.Data.

Exception stack trace:
at System.Data.Common.DbProviderFactories.GetFactory (System.String providerInvariantName) <0x4144c570 + 0x00077> in <filename unknown>:0 at NHibernate.Driver.ReflectionBasedDriver..ctor (System.String providerInvariantName, System.String driverAssemblyName, System.String connectionTypeName, System.String commandTypeName) <0x4144c220 + 0x000d3> in <filename unknown>:0 at NHibernate.Driver.MySqlDataDriver..ctor () <0x4144c1d0 + 0x00037> in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) <0x40f665b0 + 0x00045> in <filename unknown>:0
 
 
修改web.config
 
增加:
 

<system.data>
<DbProviderFactories>
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient"
description=".Net Framework Data Provider for MySQL"
type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data,
Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</DbProviderFactories>
</system.data>

上一篇:【论文速读】Shitala Prasad_ECCV2018】Using Object Information for Spotting Text


下一篇:HTTP 请求头中的 Remote_Addr,X-Forwarded-For,X-Real-IP