zoukankan      html  css  js  c++  java
  • Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral..

    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 FilesMicrosoft SQL Server Compact Editionv4.0Desktop (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 FilesMicrosoft SQL Server Compact Edition

    或者Compact 版本不对

  • 相关阅读:
    day06-for循环补充,可变与不可变类型,数字,字符串和列表的使用
    day05-while循环和for循环的使用
    day04-运算符,流程控制之if和input()用户交互功能
    day03-变量,基本数据类型,基本运算符
    day02-python和计算机介绍2
    day01-python和计算机介绍1
    仓库
    四则运算
    异常处理
    动手动脑3
  • 原文地址:https://www.cnblogs.com/watermarks/p/3793799.html
Copyright © 2011-2022 走看看