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

[ExtensionManagerException: Error loading extension type with name .]

2 Answers 1514 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Giuseppe
Top achievements
Rank 1
Giuseppe asked on 09 Aug 2012, 02:54 PM
Hi,

We are experiencing the following error when adding these lines to the web.config:

    <Telerik.Reporting>
        <Extensions>
            <Render>
                <Extension name="XLS">
                    <Parameters>
                        <Parameter name="DefaultPageFooter" value="false"/>
                    </Parameters>
                </Extension>
                <Extension name="XLSX">
                    <Parameters>
                        <Parameter name="DefaultPageFooter" value="false"/>
                    </Parameters>
                </Extension>
            </Render>
        </Extensions>
    </Telerik.Reporting>

This only happens when it is outside of the development environment and it seems to be down the the XLSX segment (if I remove that then it works).

The error that we are getting is this:

Server Error in '/' Application.

A null or zero length string does not represent a valid Type.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.TypeLoadException: A null or zero length string does not represent a valid Type.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[TypeLoadException: A null or zero length string does not represent a valid Type.]
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +10161414
   System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +42
   System.Type.GetType(String typeName, Boolean throwOnError) +71
   Telerik.Reporting.Processing.ExtensionManagerBase.CreateExtensionInfo(String typeName, String extensionName) +55

[ExtensionManagerException: Error loading extension type with name .]
   Telerik.Reporting.Processing.ExtensionManagerBase.CreateExtensionInfo(String typeName, String extensionName) +214
   Telerik.Reporting.Processing.ExtensionManagerBase.Config(ExtensionInfoCollection extensions, ReportingConfigurationSection section) +539
   Telerik.Reporting.Processing.ExtensionManager.get_Instance() +98
   Telerik.Reporting.Processing.ExtensionManager.ListExtensions(Type extensionType) +13
   Telerik.Reporting.Processing.ReportProcessor.ListRenderingExtensions() +27
   Telerik.Reporting.Processing.ReportProcessor.GetExtensionInfoCore(String name) +29
   Telerik.Reporting.Processing.ReportProcessor.GetExtensionInfo(String format) +136
   Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +22
   Telerik.ReportViewer.WebForms.ReportRenderOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +43
   Telerik.ReportViewer.WebForms.ReportPageOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, Hashtable renderingContext) +192
   Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride() +223
   Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context) +195
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171


Version Information: Microsoft .NET Framework Version:2.0.50727.5420; ASP.NET Version:2.0.50727.5420


We are using 2011 Q3 or the reporting so we know it is not a case of missing the XamlRendering dll (as it is no longer required we believe).

Any help would be appreciated.

Many thanks


Carl Howarth
PSP IT Design & Development

2 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 09 Aug 2012, 02:59 PM
Hello Carl,

Most likely you have not referenced required assemblies. The XLSX rendering extension that you've used in the web.config requires Telerik.Reporting.OpenXmlRendering.dll and Open XML SDK 2.0 for Microsoft Office (DocumentFormat.OpenXml.dll v.2.0.5022.0 or above). If those are missing, the report engine cannot find the rendering extension and throws an error.

Regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Giuseppe
Top achievements
Rank 1
answered on 09 Aug 2012, 03:07 PM
Hi Steve,

Amazingly quick response! Less than 5 minutes!

That worked a treat.

Many thanks


Carl Howarth
PSP IT Design & Development
Tags
General Discussions
Asked by
Giuseppe
Top achievements
Rank 1
Answers by
Steve
Telerik team
Giuseppe
Top achievements
Rank 1
Share this question
or