Monday, January 19, 2009

Method not found: 'System.Object System.Windows.Threading.Dispatcher.Invoke

When working with Microsoft Server 2008, and deploying an application, and after trying to run the first page:
"Method not found: 'System.Object System.Windows.Threading.Dispatcher.Invoke(System.Delegate, System.Object[])'."

The solution is simple: The server did not have Microsoft .Net Framework 3.1 SP 1 installed. After installing the package from here: Microsoft .NET Framework 3.5 Service Pack 1, everything was fixed.

Resources:
Microsoft .NET Framework 3.5 Service Pack 1

Other:
Here is the complete exception message from .net, in case anyone is searching for this fix using it
Method not found: 'System.Object System.Windows.Threading.Dispatcher.Invoke(System.Delegate, System.Object[])'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.MissingMethodException: Method not found: 'System.Object System.Windows.Threading.Dispatcher.Invoke(System.Delegate, System.Object[])'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[MissingMethodException: Method not found: 'System.Object System.Windows.Threading.Dispatcher.Invoke(System.Delegate, System.Object[])'.]

1 comment:

Tony Drake said...

Thanks - I was trying to deploy a WPF app I'd built on 3.5sp1 and it would randomaly crash on client machines - it's this!! How could MS do this to us, by adding this core lib to SP1, and now way to check a machine for SP1 has made clickonce a evil deployment task for us...

Tony Drake