您的位置:首页 > 其它

指定的命名连接在配置中找不到、非计划用于 EntityClient 提供程序或者无效

2011-08-20 17:33 323 查看
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文件不在 启动程序的 解决方案/类库 下需要复制过去。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐