This is a migrated thread and some comments may be shown as answers.

COM object that has been separated from its underlying RCW cannot be used

2 Answers 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Boardy
Top achievements
Rank 1
Veteran
Boardy asked on 11 Aug 2014, 07:57 AM
I'm designing a couple of reports in a class library. Suddenly I keep getting the following error, printed in the report itself, when I try to preview the report:

An error has occurred while processing Report '<report name>': COM object that has been separated from its underlying RCW cannot be used.

After I completely restart Visual Studio, I can generate the report again, without a problem. However, when I make a change, the error comes back.

This restarting is getting tedious. What is wrong? Is there a way to solve this? Or when this happens, is there a quicker way of making the report run again?

Thanks in advance,
   Herre

2 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 11 Aug 2014, 11:57 AM
Hi Herre,

This is a generic error result of other problem occurring on preview of the report.

We will need some additional information on this issue. It would be of great help if you could send us a runnable sample project exhibiting the issue, so we can debug it locally and advise accordingly.
The error before the reported one will point to the actual reason for the problem and the stack trace will be of help.

Feel free to open a support ticket and send us the requested details. We can update the thread at the end for anyone concerned.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Boardy
Top achievements
Rank 1
Veteran
answered on 18 Aug 2014, 03:00 PM
Result of the support ticket:

In case you use an EntityDataSource component wrapping a data model from an external assembly, this is a known issue in Visual Studio 2012+ versions, where the assemblies get loaded multiple times on rebuilding the project.  The issue can be resolved with the following steps:
 
    1. Restart Visual Studio.
    2. Start the EntityDataSource wizard and navigate to the available contexts.
    3. Click cancel.

This work-around does the job. It's better than having to restart VS before each second preview.

Actually I'm using VS 2010...
Tags
General Discussions
Asked by
Boardy
Top achievements
Rank 1
Veteran
Answers by
Stef
Telerik team
Boardy
Top achievements
Rank 1
Veteran
Share this question
or