无法加载文件或程序集'System.Data.SqlServerCe,Version = 4.0.0.0,Culture = neutral,

时间:2015-12-02 13:09:51

标签: asp.net .net

我在web.config中有这个:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.web>
    <sessionState mode="InProc" cookieless="false" timeout="20"/>
    <httpRuntime maxRequestLength="8096" />
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
        <add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
      </assemblies>
      <buildProviders>
        <add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
      </buildProviders>
    </compilation>
  </system.web>

它在我的电脑上工作正常,但在服务器主机中它给我一个错误 在:

<add assembly="System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
  

分析器错误消息:无法加载文件或程序集'System.Data.SqlServerCe,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 89845dcd8080cc91'或其依赖项之一。系统找不到指定的文件。

0 个答案:

没有答案