admin管理员组文章数量:1644023
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://wwwblogs/watermarks/p/3793799.html
本文标签: SystemDataassemblyloadfile
版权声明:本文标题:Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral.. 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1729377604a1199018.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论