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

WPF .Net 4.0 spp.config configSections 2.0 Telerik.Reporting.dll Load Exception

1 Answer 21 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steffen
Top achievements
Rank 1
Steffen asked on 07 Mar 2013, 12:23 PM
It seems, that the 4.0 Assembly loader will not load/accept the Telerik.Reporting.dll, because this dll is targeted to 2.0 !

the Telerik.reporting.dll usally works, but when i need to add some AssemblyReferences..., i must use the .Net Configuration system. -> without the <configSections> block, it works!

<
configuration>
    <configSections>
        <section
                name="Telerik.Reporting"
                type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting"
                allowLocation="true"
                allowDefinition="Everywhere"/>
    </configSections>
    
  <Telerik.Reporting>
    <AssemblyReferences>
....
</configuration>

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 12 Mar 2013, 04:36 PM
Hello Steffen,

Please check the help article about configuring Telerik Reporting in your application: Telerik Reporting Configuration Section. You need to specify the Telerik.Reporting assembly version. For example, for Q1 2013 v7.0.13.220 the configuration will be as follows:
<configuration>
  <configSections>
    <section
            name="Telerik.Reporting"
            type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting, Version=7.0.13.220, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
            allowLocation="true"
            allowDefinition="Everywhere"/>
  </configSections>
.....
    <Telerik.Reporting>
        <AssemblyReferences>
            <add name="MyUserFunctionsAssembly" version="1.0.0.0" culture="neutral" publicKeyToken="null" />
        </AssemblyReferences>
     </Telerik.Reporting>
   ...
</configuration>

If you try to extend the Standalone Designer configuration, the needed sections are already added and you need to reference your assembly only in the <AssemblyReferences> element as described in the Extending Report Designer help article.

I hope this helps.

Regards,
Stef
the Telerik team

Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

Tags
General Discussions
Asked by
Steffen
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or