views:

353

answers:

3

This just started happening with an application that has been working:

"A first chance exception of type 'System.DllNotFoundException' occurred in PresentationCore.dll
A first chance exception of type '.ModuleLoadException' occurred in PresentationCore.dll
A first chance exception of type 'System.TypeInitializationException' occurred in mscorlib.dll
An unhandled exception of type 'System.TypeInitializationException' occurred in mscorlib.dll"

How do I figure out which dll is missing? TIA for any hints...

A: 

I guess you could try re-installing .NET 3.5 SP1...

Scott Whitlock
Cool. D/l a fresh dotnetfx35setup.exe, run it, get a dialog that says "Setup error" with no other information.
Number8
That figures, doesn't it.
Scott Whitlock
+2  A: 

You can use fuslogvw.exe to check for missing assembly dependencies, or Depends.exe for native dependencies.

Reed Copsey
+1  A: 

As Reed suggested, use the fusion log. Here's a good article on using it: http://www.hanselman.com/blog/BackToBasicsUsingFusionLogViewerToDebugObscureLoaderErrors.aspx

JMarsch