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

Preview Mode + Custom DataSource

2 Answers 118 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sebastian Talamoni
Top achievements
Rank 1
Sebastian Talamoni asked on 03 Apr 2008, 09:16 AM
Hi,
I am new to telerik products so excuse me if this is a simple / faq question.

I am building my reports using my own custom strongly typed collections, etc. This works great.

This custom collection class is located in another project, thus it's a project reference. ( I followed the documentation suggestion of using a special report project which i totally agreed).

My only problem is that in the preview is not working giving the following error: Could not load file or assembly [BoLayer.dll ] which off course is my own dll.

How can I fix this? (don't tell me to add the dll to GAC because that's not an option). Is there a way to add a config file to include this dll reference so the previewer is aware of it?

Could it be because my DLL is not strongly named? (no assemblyinfo.cs)

What I think happens (if anybody cares. :) )
I think that the preview mode uses it's own ApplicationDomain and the dlls loaded into that domain are not included the current project references (which i think it should) or it's only using GAC.

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 04 Apr 2008, 11:35 AM
Hello Sebastian Talamoni,

The report designer does not create any additional AppDomain and all assemblies run in the devenv.exe's AppDomain. Actually this is the Visual Studio IDE that loads all assemblies it requires (including those that are referenced by a given project).

To find the actual reason for this problem you should examine the assembly binding logs. For a start, please make sure that all assemblies that BoLayer.dll depends are available as well.

Kind regards,
Svetoslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Christian
Top achievements
Rank 1
answered on 21 Apr 2009, 08:25 PM
Hi,
I have a similar problem. The report works fine at runtime but I have no chance to get a preview.
And I have a second problem: I have a complex class model with substructures. In the data explorer I only see the properties of the first level. Is there any chance to see the hole class model?

Thanks.
Christian
Tags
General Discussions
Asked by
Sebastian Talamoni
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Christian
Top achievements
Rank 1
Share this question
or