連接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