首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET Framework >

enterprise library 报错解决方法

2013-01-02 
enterprise library 报错el3.1 报错如下:{The type EntLibContrib.Data.SQLite.SQLiteDatabase, EntLibC

enterprise library 报错
el3.1 
报错如下:
{"The type 'EntLibContrib.Data.SQLite.SQLiteDatabase, EntLibContrib.Data.SqLite, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' cannot be resolved. Please verify the spelling is correct or that the full type name is provided."}

DatabaseFactory.CreateDatabase("database")
在这调用时候报错 不知道为什么

<configSections>
    <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </configSections>
  <dataConfiguration defaultDatabase="database">
    <providerMappings>
      <add databaseType="EntLibContrib.Data.SQLite.SQLiteDatabase, EntLibContrib.Data.SqLite, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="System.Data.SQLite" />
    </providerMappings>
  </dataConfiguration>
[解决办法]
没有遇到过。顶了。
[解决办法]
友情UP。。。。。
[解决办法]
两种情况,
第一种,可能是没有引用;
第二种,可能发布以后,程序的根目录没有找到该程序集dll
[解决办法]
两种情况,
第一种,可能是没有引用;
第二种,可能发布以后,程序的根目录没有找到该程序集dll

热点排行