日期:2014-05-20  浏览次数:20939 次

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