Monday, 8 October 2012


if you got following warning:

Releasing the interfaces from the current context . This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/apartments stay alive until the application is completely done with the RuntimeCallableWrappers that represent COM components that live inside them.

answer:
GoTo Visual studion-> Debug ->Exceptions->Managed Debugging Assistants and clear the DisconnectedContext checked box in Thrown