首页 > 数据库技术 > 详细

连接WCF报EntityFramework.SqlServer 错误的解决方法

时间:2016-06-19 01:06:25      阅读:323      评论:0      收藏:0      [点我收藏+]

现象:

The Entity Framework provider type System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer registered in the application config file for the ADO.NET provider with invariant name System.Data.SqlClient could not be loaded. Make sure that the assembly-qualified name is used and that the assembly is available to the running application.

 

原因:

在测试环境是有EntityFramework.SqlServer.dll 而部署的时候,这个dll没有被放到部署的bin文件夹中。

解决:

从测试环境的obj的文件夹下拷贝到部署所在的bin目录下。

连接WCF报EntityFramework.SqlServer 错误的解决方法

原文:http://www.cnblogs.com/fm168/p/5597198.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!