zoukankan      html  css  js  c++  java
  • 指定的命名连接在配置中找不到、非计划用于 EntityClient 提供程序或者无效

       S1.  应该是配置文件web.config 或者 app.config 中没有正确配置。

    这是我的APP.CONFIG的文件。

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <connectionStrings>
            <add name="OrganizeEntities" connectionString="metadata=res://*/AEF2SQL.csdl|res://*/AEF2SQL.ssdl|res://*/AEF2SQL.msl;provider=System.Data.SqlClient;provider connection string="Data Source=QKF;Initial Catalog=Organize;Persist Security Info=True;User ID=sa;Password=111;Pooling=False;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />       
    </configuration>
    

       一般情况下配置都是正常的。因为是自动生成的。

    S2:如果你的edml文件不在 启动程序的 解决方案/类库 下需要复制过去。

    edml

    至此如果问题还没解决的话 ,请留言吧。


    作者:撞破南墙
    出处:http://www.cnblogs.com/facingwaller/
    关于作者:本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

  • 相关阅读:
    缓存
    Java缓存
    数据库事务
    spring 事务管理
    MySQL错误解决10038
    mysql存储过程
    ECS修改默认端口22及限制root登录
    xunsearch安装配置
    https和http共存的nginx配置
    ECS 安装redis 及安装PHPredis的扩展
  • 原文地址:https://www.cnblogs.com/facingwaller/p/1701724.html
Copyright © 2011-2022 走看看