Hello All,
I am trying to create a web service. This web service for
now, has to use couple of exisiting COM components. I
have added them in my .NET project as COM interop. Most
of the time it works great. But randomly we get an error
"COM object that has been separated from its underlying
RCW can not be used."
Which is kind of wierd because the code looks like
following
commOject = new ComObjectClass();
commObject.SomeFunc();
commObject.SomeProp = SomeValue;
CommObject.DataReady+= new dataReadyHandler(SomeHandler)
First three lines excecute just fine. And the fourth line
throws the exception.
Has anybody faced this problem? Your help / suggestions
is greatly appreciated.
Thanks.
Rahul.