29 September 2009

...trace your dll: VS 2010 Method not found exception

Problem

So you've referenced a method and compiled your code without errors but on execution you get
 System.MissingMethodException (Message: Method not found :< method ...>). 


Solved

Identify the culprit, the runtime dll in VS like so (Note: runtime dll implies the solution is running in VS when you do the following):

1.     Debug  > Windows > Modules
2.     Find your dll and see the path\folder of the code being executed
3.     Either delete the dll and fix/update references or replace the dll in the folder, whatever works for you...