{"id":560,"date":"2018-03-13T13:20:51","date_gmt":"2018-03-13T05:20:51","guid":{"rendered":"https:\/\/blog.freesilo.com\/?p=560"},"modified":"2018-03-13T13:20:51","modified_gmt":"2018-03-13T05:20:51","slug":"system-data-sqlclient-could-not-be-loaded%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"https:\/\/freesilo.com\/?p=560","title":{"rendered":"&#8216;System.Data.SqlClient&#8217; could not be loaded\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"<p>\u73b0\u8c61\uff1a<\/p>\n<p>The Entity Framework provider type &#8216;System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer&#8217; registered in the application config file for the ADO.NET provider with invariant name &#8216;System.Data.SqlClient&#8217; could not be loaded. Make sure that the assembly-qualified name is used and that the assembly is available to the running application.<\/p>\n<p>\u5f15\u7528:<span class=\"Apple-converted-space\">\u00a0\u9ad8\u4eba<a class=\"bluelink\" href=\"https:\/\/q.cnblogs.com\/u\/dudu\/\">dudu<\/a>\u00a0\u7684\u56de\u590d<\/span><\/p>\n<p>\u8fd9\u662f\u4e00\u4e2a\u8bef\u5bfc\u4eba\u7684\u9519\u8bef\u4fe1\u606f\uff0c\u5b9e\u9645\u662f\u56e0\u4e3a\u627e\u4e0d\u5230\u00a0EntityFramework.SqlServer.dll \u6587\u4ef6\u3002<\/p>\n<p>\u95ee\u9898\u80cc\u666f\u662fweb\u9879\u76ee\u6240\u5f15\u7528\u7684\u9879\u76ee\u4e2d\u5b89\u88c5\u4e86EF\u7684nuget\u5305\uff0c\u800cweb\u9879\u76ee\u672c\u8eab\u6ca1\u6709\u5b89\u88c5\u3002\u4e8e\u662fbuild\u540e\uff0cweb\u9879\u76ee\u7684bin\u6587\u4ef6\u5939\u4e2d\u53ea\u6709EntityFramework.dll\uff0c\u5374\u6ca1\u6709EntityFramework.SqlServer.dll\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1aweb\u9879\u76ee\u4e5f\u5b89\u88c5Entity Framework\u7684nuget\u5305\u3002<\/p>\n<p>\u628a\u6240\u5f15\u7528\u7684\u9879\u76ee\u4e2d\u5b89\u88c5\u4e86EF\u7684nuget\u5305\u7684bin\u76ee\u5f55\u4e0b\u7684EntityFramework.SqlServer.dll \u6587\u4ef6\u590d\u5236\u5230Web\u9879\u76ee\u4e2d\u7684bin\u76ee\u5f55\u4e0b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73b0\u8c61\uff1a The Entity Framework provider type &#038;&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/freesilo.com\/?p=560\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-560","post","type-post","status-publish","format-standard","hentry","category-dotnet"],"_links":{"self":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts\/560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=560"}],"version-history":[{"count":1,"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts\/560\/revisions"}],"predecessor-version":[{"id":561,"href":"https:\/\/freesilo.com\/index.php?rest_route=\/wp\/v2\/posts\/560\/revisions\/561"}],"wp:attachment":[{"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freesilo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}