原文链接:http://www.cnblogs.com/facingwaller/archive/2010/03/31/1701724.html
S1. 应该是配置文件web.config 或者 app.config 中没有正确配置。
这是我的APP.CONFIG的文件。
view source
print
?
1<?xml version="1.0" encoding="utf-8"?>
2<configuration>
3 <connectionStrings>
4 <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" />
5</configuration>
一般情况下配置都是正常的。因为是自动生成的。
S2:如果你的edml文件不在 启动程序的 解决方案/类库 下需要复制过去。
至此如果问题还没解决的话 ,请留言吧。