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

pdf rendering extension exception

1 Answer 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vu
Top achievements
Rank 1
Vu asked on 04 Jan 2012, 04:17 PM
Hi

I'm trying to export PDF files with Bookmarks/Document Map to generate "Table of Content" Pages with "itextsharp". What I've got so far is, that I have to use the PDF Report extension from Telerik.Reporting.ImageRendering.

But I can't get the PDF Report extension to run. My web.config looks like that:

<configSections>
  <section name="Telerik.Reporting" type="Telerik.Reporting.ImageRendering.PdfReport, Telerik.Reporting, Version=5.3.11.1116, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />
  <sectionGroup name="xsite">
    <sectionGroup name="productPortfolio">
      <section name="businessLineSettings" type="XSite.ProductPortfolio.Business.BusinessLineConfiguration, XSite.ProductPortfolio.Business"/>
    </sectionGroup>
  </sectionGroup>
</configSections>
<appSettings>
  <add key="UserContentLocation" value="E:\xsite\usercontent\" />
  <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/>
  <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/>
  <add key="Telerik.Skin" value="Sitefinity" />
</appSettings>
<Telerik.Reporting>
 <Extensions>
   <Render>
     <Extension name="Telerik.Reporting" type="Telerik.Reporting.ImageRendering.PdfReport, Telerik.Reporting, Version=5.3.11.1116, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" />
   </Render>
 </Extensions>
</Telerik.Reporting>

When compiling the project, an error occurs:

{"An error occurred creating the configuration section handler for Telerik.Reporting: Type 'Telerik.Reporting.ImageRendering.PdfReport' does not inherit from 'System.Configuration.IConfigurationSectionHandler'. (D:\\Visual Studio Projects\\XSite.ProductPortfolio\\XSite.ProductPortfolio.Web.UI\\web.config line 4)"}

Am I missing something?

Thanks for help!

1 Answer, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 04 Jan 2012, 04:41 PM
You've wrongly configured the Telerik Reporting section. It should be:

<section
                name="Telerik.Reporting"
                type="Telerik.Reporting.Processing.Config.ReportingConfigurationSection, Telerik.Reporting, Version=5.3.11.1116, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
                allowLocation="true"
                allowDefinition="Everywhere"/>

Cheers
Tags
General Discussions
Asked by
Vu
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Share this question
or