{"id":42,"date":"2014-09-15T16:56:00","date_gmt":"2014-09-15T21:56:00","guid":{"rendered":"https:\/\/www.chrystalsander.com\/blog\/?p=42"},"modified":"2014-09-15T16:56:00","modified_gmt":"2014-09-15T21:56:00","slug":"error-could-not-load-file-or-assembly-oracle-dataaccess-or-one-of-its-dependencies","status":"publish","type":"post","link":"https:\/\/www.chrystalsander.com\/blog\/?p=42","title":{"rendered":"Error : Could not load file or assembly &#8216;Oracle.DataAccess&#8217; or one of its dependencies."},"content":{"rendered":"<p>I ran into this problem today in a ASP.NET application on deployment:<\/p>\n<p><i>&#8220;Exception message: Could not load file or assembly &#8216;Oracle.DataAccess&#8217; or one of its dependencies. An attempt was made to load a program with an incorrect format.&#8221;<\/i><\/p>\n<div>\n<\/div>\n<p>Some suggest changing your solution by going into Configuration Manager and set your target platform to 64-bit. &nbsp;Others suggest enabling 32-bit applications in your AppPool. <\/p>\n<p>Before doing that, make sure that your reference properties for Oracle.DataAccess have NOT been inadvertently changed to &#8220;Copy Local = true&#8221;. &nbsp;Otherwise, your server will be using your copy and not the one in the GAC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I ran into this problem today in a ASP.NET application on deployment: &#8220;Exception message: Could not load file or assembly &#8216;Oracle.DataAccess&#8217; or one of its dependencies. An attempt was made to load a program with an incorrect format.&#8221; Some suggest changing your solution by going into Configuration Manager and set your target platform to 64-bit. &hellip; <a href=\"https:\/\/www.chrystalsander.com\/blog\/?p=42\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Error : Could not load file or assembly &#8216;Oracle.DataAccess&#8217; or one of its dependencies.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/42"}],"collection":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=42"}],"version-history":[{"count":0,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chrystalsander.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}