I am having a problem with a WPF Application in Visual Studio 2010 and .Net Framework 4:
Inside Visual Studio 2010, When debugging, if I try to run a function that sets a property of a Interop COM object at the second time it throws this error:
COMException was unhandled: Catastrophic Failure
Error code: -2147418113
If I run the same application using the Windows Explorer, on the Debug output folder, the function runs normally.
If i change the Framework version to 3.5 the Visual Studio also runs the function normally