zoukankan      html  css  js  c++  java
  • 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 列表中的dl,dt,dd,ul,li,ol区别及应用
    JS中关于clientWidth offsetWidth scrollWidth 等的含义
    关于javascript中dataset的问题小结
    AMD CMD ,requirejs seajs 区别
    [if IE ]>与<![endif]
    windows下实现wamp与tomcat环境整合
    webstorm 设置jsp支持
    js获取客户端IP及地理位置
    AngularJS所有版本下载地址
    jQuery插件开发全解析
  • 原文地址:https://www.cnblogs.com/shengshuai/p/5357303.html
Copyright © 2011-2022 走看看