InvalidComObjectException

T

timt

Hi, we're having some trouble with an integrated visio control in c#.

On one pc everything works fine, but on two other pc's the same code
throws the following exception:

An unhandled exception of type
'System.Runtime.InteropServices.InvalidComObjectException' occurred in
Microsoft.Office.Interop.Visio.dll

Additional information: COM object that has been separated from its
underlying RCW cannot be used.


on this code:
this.Document.Application.ConnectionsAdded += new
Application_ConnectionsAddedEventHandler(this.visioControl_ConnectionsAdded);


All pc's use the same visual studio and have the same visio sdk version
installed, so we're really puzzeled by this problem. If anyone has an
idea why the same code works perfectly on one pc, and gives an error on
the others, please let us know.

Thanks, timt
 
T

timt

We found that fix too, but we don't use that server object.

btw: on one of the pc's that gave the error, the program does work in
release mode :s
 

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