Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.42
Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.
RegAsm : error RA0000 : Could not load file or assembly 'MyAssembly, Version=0.0.
0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Exception
from HRESULT: 0xE0434F4D
Now I know my assembly has version 126.96.36.199 so this doesn't make sense....nor did the fact that using fuslogvw didn't show any assembly binding failures and filemon showed that the file is being located and read from without any problems. Well, now what? Create a simple .NET project (doesn't matter what), and set the debugging options to launch an external program (c:\windows\microsoft.net\framework\v2.0.50727\regasm.exe) and set the command line arguments to pass in the dll you're trying to register. Also configure the debugger to break when excpetions are thrown.
Run the project and the IDE will break on the underlying exception that's causing the whole thing to bust. In my case it was this exception:
DLL 'MyAssembly.dllis attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.