zoukankan      html  css  js  c++  java
  • “Unable to load DLL” problem with SQL Server CE

    I got an error when using SQL Server Compact 3.5 (SqlCe) with asp.net MVC3 web application.

    The error is like: “Unable to load DLL ‘sqlcese35.dll’: The specified module could not be found. (Exception from HRESULT: …

    When looking this issue, I found that SQL CE is not installed in GAC so the reference is added from its installation folder. e.g. C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Private. And the file name is “System.Data.SqlServerCe.dll".

    This assembly requires several native DLLs to work. They are (possibly):

    sqlcea35.dll

    sqlcecompact35.dll

    sqlceer35en.dll

    sqlceme35.dll

    sqlceoledb35.dll

    sqlceqp35.dll

    sqlcese35.dll

    I’m not sure which of these are really needed. To avoid further problems, I copied all of them into my project’s “bin” folder. bingo, now it works!

    This problem brings an additional deployment step for my web application. I know “xcopy” is easy to deal with. But in the future I would like to take a look for other alternatives against SQL Server CE, e.g. sqlite. Although I’m not sure if it’s a one-file solution.

  • 相关阅读:
    MySQL5.7(64位)windows下的安装
    Python---更改pip源
    .NET WEB技术小记
    前端板书1
    Hadoop伪分布式系统的搭建(ubuntu)
    Hive的基本操作
    SQLServer2008附加数据库不成功 操作系统错误5
    VUE学习小结
    jQuery入门基础(选择器)
    Linq(高级查询)
  • 原文地址:https://www.cnblogs.com/brucejia/p/2361168.html
Copyright © 2011-2022 走看看