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

Report preview stops working after changing entity data model

1 Answer 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Falafel Support
Top achievements
Rank 1
Falafel Support asked on 09 Nov 2011, 06:31 PM
I created a report using an EntityDataSource.  Whenever I make a change to the model and rebuild the solution, my report previews no longer work.  To get them to work, I have to close Visual Studio and reopen the project.  Before restarting Visual Studio, here's the error message I get in the report preview:

The number of members in the conceptual type 'DataModelNS.ChangedEnityType'
does not match with the number of members on the object side type
'DataModelNS.ChangedEntityType'. Make sure the number of members are the
same.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 11 Nov 2011, 01:54 PM
Hi,

Every time you recompile an assembly that is used at design-time, Visual Studio copies that assembly to a temporary location and loads the assembly from that location. If you recompile the assembly several times - several identical copies of the assembly are loaded into memory and never get unloaded, unless you close Visual Studio. You can easily confirm this yourself by starting a second instance of Visual Studio and attaching the debugger to the first one.
It seems that this misbehavior is already filed as a bug in connect (Bug ID: 352042), however it is currently postponed by Microsoft.

The problem is that for some reason these duplicated assemblies get in the way of resolving the correct types at design-time. The only method known to us to unload these duplicated assemblies is to restart Visual Studio. This seems to solve the problem temporarily, until you make other modifications and recompile it again.

All the best,
Steve
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

Tags
General Discussions
Asked by
Falafel Support
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or