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


现象:

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目录下。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM