博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral..
阅读量:7131 次
发布时间:2019-06-28

本文共 1138 字,大约阅读时间需要 3 分钟。

Q:Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies

ANSWER:Generally you need to make sure you have updated any Project references to point to the 4.0 managed DLL which usually located at: C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Desktop (System.Data.SqlServerCe.dll). If your references are located in the application folder, then make sure all the dlls are copied and confirm the versions are the same. If the app.config file existed, check it . This file could redirect assembly references version at run time . Such like: 

<assemblyBinding xmlns="urnchemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Data.SqlServerCe" publicKeyToken="89845DCD8080CC91" culture="neutral"/>
                <bindingRedirect oldVersion="0.0.0.0-9.0.242.0" newVersion="4.0.0.0"/>
            </dependentAssembly>
        </assemblyBinding>

 

没有安装Microsoft SQL Server Compact.  EG:Microsoft SQL Server Compact 4.0 Setup

地址:C:\Program Files\Microsoft SQL Server Compact Edition

或者Compact 版本不对

转载于:https://www.cnblogs.com/watermarks/p/3793799.html

你可能感兴趣的文章
自动化运维之Samba4.2.0部署遇到问题:Ignoring invalid value 'share' for parameter 'security'...
查看>>
consul安装
查看>>
appcompat_v7的作用以及编译错误
查看>>
tail 命令 查看Tomcat目录下日志的最后几行的方法
查看>>
逻辑滚动条管理员 (Logical Volume Manager)的讨论
查看>>
WINSOCK RESET解决只能通过IP地址访问目的地址,而域名无法访问的问题。
查看>>
在线旅游资源点评受宠,但质量参差不齐
查看>>
阿里通信携手联通MWC演示“智选加速” 预演5G垂直应用
查看>>
Windows 7如何禁止在C盘上安装软件?
查看>>
算法学习之路|朋友数
查看>>
ssh到远程主机杀死进程
查看>>
Linux批量远程命令和上传下载工具
查看>>
使用System Center Essentials 2007查看计算机的软件清单
查看>>
HTML5标签的语义认知和理解(1)
查看>>
活动目录快照和DMT的终极使用---Windows2008 R2 新功能系列之九
查看>>
组策略应用之二——限制客户端软件安装及使用
查看>>
算法学习之路|逆元取模(一)
查看>>
通过Lotus Notes7.0.1客户端收发MDaemon邮件
查看>>
学习分区表应该了解的参数
查看>>
Spring Data Elasticsearch 与 Elasticsearch 的关系
查看>>