Ask a Question related to ASP.NET General, Design and Development.
-
Rahul T. #1
COM object that has been separated from its underlying RCW can not be used.
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.
Rahul T. Guest
-
Re-composing separated PDFs
Is there a way to re-compose separated PDF's from Quark? We're using Acrobat 6 on a G5 running 10.4.8. We have a 5 plate document, the 5th of which... -
line separated file
I have line separated file. Every line represent something. I need to extraxt these lines into Array or something else so after that I can... -
splitting string, | - separated
Ereg did it again.. Again I'm having a headache :-) 00034355 | 00034355 | OKI PRINTER MICROLINE 280 EPSON COMPATIBLE PARALLEL ... -
Separated DLLs for user controls
Hi, By default VS.NET generates just one DLL contains all code behinds and userconrols. Is it possible to have VS.NET partitione them in their... -
comma separated to SQL Server DB table
http://www.aspfaq.com/2248 "John" <john.reed@intel.com> wrote in message news:0b7c01c344bb$70f47d30$a001280a@phx.gbl... -
bruce barker #2
Re: COM object that has been separated from its underlying RCW can not be used.
the error means you are calling a sta com object from a different thread.
set aspcompat to true.
"Rahul T." <rtalwalkar@betasys.com> wrote in message
news:00f701c34a1b$a693c3a0$a101280a@phx.gbl...> 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.
>
>
>
bruce barker Guest
-
Rahul T. #3
Re: COM object that has been separated from its underlying RCW can not be used.
Thanks for your response.
But the COM object I am trying to use is an apartment
threaded object. And a call on it just on the previous
line was successful.
Also I am kinda new in .net. Where do I set
the "aspcompat"
Thanksdifferent thread.>-----Original Message-----
>the error means you are calling a sta com object from afor>set aspcompat to true.
>
>
>"Rahul T." <rtalwalkar@betasys.com> wrote in message
>news:00f701c34a1b$a693c3a0$a101280a@phx.gbl...>> Hello All,
>>
>> I am trying to create a web service. This web serviceerror>> 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(SomeHandler)>>
>> "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 dataReadyHandlerline>>
>> First three lines excecute just fine. And the fourth>>> throws the exception.
>>
>> Has anybody faced this problem? Your help / suggestions
>> is greatly appreciated.
>>
>> Thanks.
>>
>> Rahul.
>>
>>
>>
>
>.
>Rahul T. Guest



Reply With Quote

