{"id":2680,"date":"2013-05-23T09:36:11","date_gmt":"2013-05-23T09:36:11","guid":{"rendered":"http:\/\/enjoyasp.net\/?p=2680"},"modified":"2013-05-24T00:51:25","modified_gmt":"2013-05-24T00:51:25","slug":"could-not-load-file-or-assembly-microsoft-practices-enterpriselibrary-common-version5-0-414-0-cultureneutral-publickeytoken31bf3856ad364e35-or-one-of-its-dependencies-the-located-assembly","status":"publish","type":"post","link":"https:\/\/enjoyasp.net\/index.php\/2013\/05\/23\/could-not-load-file-or-assembly-microsoft-practices-enterpriselibrary-common-version5-0-414-0-cultureneutral-publickeytoken31bf3856ad364e35-or-one-of-its-dependencies-the-located-assembly\/","title":{"rendered":"Could not load file or assembly (Exception from HRESULT: 0x80131040)"},"content":{"rendered":"<p>\u7f16\u8bd1\u51fa\u73b0\u8fd9\u4e2a\u9519\u8bef\uff1a<br \/>\nCould not load file or assembly &#39;Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)<\/p>\n<p>\u64cd\u4f5c\uff1a\u4f7f\u7528\u5fae\u8f6f\u4f01\u4e1a\u5e93\uff0c\u4fee\u6539\u4e86Microsoft.Practices.EnterpriseLibrary.Common.dll,Microsoft.Practices.EnterpriseLibrary.Data.dll<br \/>\n\uff08\u4e00\u4e2a\u77e5\u8bc6\u70b9\u662f\u4fee\u6539\u4e86\u8fd9\u79cddll\u540e\uff0c\u5fae\u8f6f\u7684\u5f3a\u7b7e\u540d\u5c31\u6ca1\u4e86\uff0c\u7531PublicKeyToken=31bf3856ad364e35\u53d8\u6210\u4e86PublicKeyToken=null\uff09<\/p>\n<p>\u95ee\u9898\u5f15\u53d1\u573a\u666f\uff1a<br \/>\n\u65b0\u9879\u76ee\u4e2d\u5f15\u7528\u4e86\u4fee\u6539\u7684\u4f01\u4e1a\u5e93Common.dll\uff0cData.dll,\u672a\u6539\u7684\u4f01\u4e1a\u5e93Caching.dll\uff0c\u95ee\u9898\u5c31\u6765\u4e86\uff1a<br \/>\n\u5fae\u8f6f\u7684\u4f01\u4e1a\u5e93Caching.dll\u91cc\u9762\u8fd8\u662f\u5f15\u7528\u539f\u6765\u7684\u5e26\u6709\u5f3a\u7b7e\u540d\u7684Common.dll(\u53ef\u901a\u8fc7Reflector\u67e5\u770b\u6b64\u5f15\u7528)\uff0c\u800c\u6211\u4eec\u5728\u8fd9\u4e2a\u65b0\u9879\u76ee\u4e2d\u5f15\u7528\u7684\u662f\u81ea\u5df1\u4fee\u6539\u7684Common.dll,\u5728\u7f16\u8bd1\u65f6\u9020\u6210Caching.dll\u627e\u4e0d\u5230\u5fae\u8f6f\u7684Common.dll,\u4ece\u800c\u5f15\u53d1\u4e0a\u8ff0\u9519\u8bef\u3002<br \/>\n\u89e3\u51b3\u65b9\u6cd5\uff1a<br \/>\n1\uff0c\u4fee\u6539Caching.dll,\u5c06\u5176\u5f15\u7528\u7684Common.dll\u6539\u4e3a\u81ea\u5df2\u4fee\u6539\u540e\u7684Common.dll<br \/>\n2,\u56e0\u672c\u9879\u76ee\u4e2d\u6ca1\u6709\u7528\u5230Caching.dll\u7684\u5730\u65b9\uff0c\u53bb\u6389\u6b64Caching.dll,\u89e3\u51b3\u95ee\u9898<br \/>\n3,\u56e0\u5fae\u8f6f\u7684Common.dll\u662f\u5f3a\u7b7e\u540d\uff0c\u53ef\u6ce8\u518c\u5230<a href=\"http:\/\/enjoyasp.net\/?p=2688\">GAC\u5168\u5c40<\/a><\/p>\n<p>\u6ce8\uff1a<br \/>\n1\uff0c\u5f15\u7528Common.dll\u7684\u5fae\u8f6f\u4f01\u4e1a\u5e93\u8fd8\u6709<br \/>\nMicrosoft.Practices.EnterpriseLibrary.Caching.Cryptography.dll<br \/>\nMicrosoft.Practices.EnterpriseLibrary.Caching.Database.dll<br \/>\nMicrosoft.Practices.EnterpriseLibrary.Caching.dll<br \/>\nMicrosoft.Practices.EnterpriseLibrary.Security.Cryptography.dll<br \/>\n2\uff0c\u4e00\u4e2a\u88ab\u5ffd\u7565\u7684\u57fa\u672c\u4e8b\u5b9e\u662f\uff1a\u6253\u5305\u7684dll\u5982father.dll \u91cc\u9762\u5f15\u7528\u4e86son.dll,\u90a3\u4e48\u5728\u65b0\u9879\u76ee\u4e2d\u82e5\u5f15\u7528father.dll,\u90a3\u4e48\u5728bin\u4e0b\u4e5f\u8981\u6709son.dll\u7684\u5b58\u5728\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f16\u8bd1\u51fa\u73b0\u8fd9\u4e2a\u9519\u8bef\uff1a Could not load file or assembly &#39;Microsof [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-2680","post","type-post","status-publish","format-standard","hentry","category-13"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/2680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/comments?post=2680"}],"version-history":[{"count":0,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/2680\/revisions"}],"wp:attachment":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/media?parent=2680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/categories?post=2680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/tags?post=2680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}