TITLE!

Archive for March, 2011

Assembly runtime forwarding not working without explanation

by on Mar.18, 2011, under .NET/C#, Coding, Visual Studio .NET

After hours and hours of searching between a coworker and I as to why an assembly version forwarding in this dll hell we’ve caused ourself wasn’t working in one project and it was in another, we explored every possibility we could think of:

  1. Manually searching assemblies for manual loads
  2. Searching the CLR for the location of runtime forwarding programatically (and failed)
  3. Copying and pasting the exact same text from seperate configuration files known to be working in hopes of success
  4. Sacrificing a kitten

All to no avail. After searching, and searching more I finaally ran across this awesome Microsoft Social post where someone mentioned that the configuration element having an xmlns would cause runtime to be ignored. Surely, this couldn’t be the case, but a quick test proved it to in fact be a solution.

So, to summarize:

Bad:

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

Good:

<configuration>

New one to me…

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!