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 1Other:
Here is the complete exception message from .net, in case anyone is searching for this fix using itMethod 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[])'.]