• 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>

  • 相关阅读:
    🌏HTML文档结构与标签语法
    🌎HTML简介
    🍖Web前端介绍Web前端介绍
    🍖事务隔离机制
    🍖多版本并发控制 MVCC 的快照读与当前读简介
    🍖MySQL锁机制
    🍖数据库读现象(问题)
    hashlib 模块用来进行hash
    Logging 模块
    config parser 模块
  • 原文地址:https://www.cnblogs.com/shengshuai/p/5357303.html
Copyright © 2020-2023  润新知