The CLR marshaler encountered an error while attempting to restore the thread culture after a call from unmanaged to managed ...

The CLR marshaler encountered an error while attempting to restore the thread culture after a call from unmanaged to managed where an LCID was used to specify the culture for the call. This will cause the thread's culture to remain set to the one associated with the LCID. The cause of the failure was: %1$s