Archive for March, 2011
Assembly runtime forwarding not working without explanation
by Alec Horn 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:
- Manually searching assemblies for manual loads
- Searching the CLR for the location of runtime forwarding programatically (and failed)
- Copying and pasting the exact same text from seperate configuration files known to be working in hopes of success
- 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:
Good:
New one to me…