RPC_E_CALL_REJECTED with Visio 2003 & VS.NET 2005 ??

  • Thread starter Walter Quirtmair
  • Start date
W

Walter Quirtmair

Hi,
we access a running Visio 2003 from VS.NET 2005 and C# through the
Interop-Assemblies and suddenly get a COM exception RPC_E_CALL_REJECTED for
some calls to Visio.

Does anybody has an idea what's going wrong here?

Thanks for any help!
Walter
 
N

nbelyh

Hi,
we access a running Visio 2003 from VS.NET 2005 and C# through the
Interop-Assemblies and suddenly get a COM exception RPC_E_CALL_REJECTED for
some calls to Visio.

Does anybody has an idea what's going wrong here?

Hi,
maybe you are trying to access Visio from two different threads
simultaneously?
 
W

Walter Quirtmair

In fact the same code worked all fine with VS.NET 2002 and .NET 1.1

We simply upgraded to VS.NET 2005 and .NET 2.0 and now it's not working
anymore.

Visio is "incorporated" into our application by use of the SetParent()
WinAPI call. All calls to dialogs are done from within the same thread.

Thanks,

Walter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top