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

Error on remote server but not dev machine.

3 Answers 133 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 2
MGrassman asked on 30 Mar 2010, 04:57 PM
I am getting the following error for all report on my live server but not on my local machine.

[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) +7663440
   System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
   System.Type.GetType(String typeName, Boolean throwOnError) +59
   Telerik.Reporting.Processing.ExtensionManagerBase.CreateExtensionInfo(String typeName, String extensionName) +45

[ExtensionManagerException: Error loading extension type with name .]
   Telerik.Reporting.Processing.ExtensionManagerBase.CreateExtensionInfo(String typeName, String extensionName) +83
   Telerik.Reporting.Processing.ExtensionManagerBase.Config(ExtensionInfoCollection extensions, ReportingConfigurationSection section) +285
   Telerik.Reporting.Processing.ExtensionManagerBase..ctor(IEnumerable`1 extensionTypeNames, ReportingConfigurationSection section) +95
   Telerik.Reporting.Processing.ExtensionManager.get_Instance() +96
   Telerik.Reporting.Processing.ExtensionManager.ListExtensions(Type extensionType) +11
   Telerik.Reporting.Processing.ReportProcessor.ListRenderingExtensions() +20
   Telerik.Reporting.Processing.ReportProcessor.GetRenderer(String name) +36
   Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +206
   Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageIndex) +460
   Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperation(NameValueCollection urlQuery, HttpContext context) +117
   Telerik.ReportViewer.WebForms.HttpHandler.ProcessRequest(HttpContext context) +164
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

<%@ Page Title="" Language="C#" MasterPageFile="~/mstSite.Master" AutoEventWireup="true" CodeBehind="RollupReport.aspx.cs" Inherits="ARAMARK.MPB.Resources.Reports.RollupReport" %> 
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">  
    <br style="clear:both;" /> 
    <div class="TenAbove" /> 
    <div style="border:solid 1px black; padding:5px;">  
    <telerik:ReportViewer ID="ReportViewer1" runat="server"   
        width="100%" Height="775px" Resources-ExportSelectFormatText="View As..." Resources-ExportButtonText="View" > 
        <Resources ExportButtonText="View" ExportSelectFormatText="View As..."></Resources> 
Code Behind
protected void Page_Load(object sender, EventArgs e)  
            if (LoggedInUser.Role == Roles.RegionalAdmin)  
                ARAMARK.MPB.Reports.RollupReportDetailed r = new ARAMARK.MPB.Reports.RollupReportDetailed();  
                ReportViewer1.ShowParametersButton = false;  
                ReportViewer1.ParametersAreaVisible = false;  
                r.ReportParameters["RegionRecId"].Value = LoggedInUser.RegionRecId.ToString();  
                ReportViewer1.Report = r;  

Any clues?

3 Answers, 1 is accepted

Sort by
Telerik team
answered on 30 Mar 2010, 05:13 PM
Hi MGrassman,

Most likely you are referencing the XPS rendering extension somewhere in your code or in your web.config file. Thus, you need to have the Telerik.Reporting.XamlRendering assembly present in the bin folder of your web site/app. More information about deploying Telerik Reporting is available in the respective help article: Deploying Applications using Telerik Reporting.

Kind regards,
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Top achievements
Rank 1
answered on 24 Apr 2013, 02:59 PM

I do get exactly the same error as described above using Q1 2012 (
The help site you've mentioned is no longer available.

I've added the following Assemblies to the server


Withing the web.xml the following render extensions are enabled

        <Extension name="IMAGE" visible="true"/>
        <Extension name="PDF" visible="true"/>
        <Extension name="CSV" visible="false"/>
        <Extension name="XLS" visible="false"/>
        <Extension name="XLSX" visible="false"/>
        <Extension name="RTF" visible="false"/>
        <Extension name="HTML" visible="false"/>
        <Extension name="MHTML" visible="false"/>
        <Extension name="XPS" visible="false"/>
        <Extension name="DOCX" visible="false"/>
        <Extension name="PPTX" visible="true"/>

I'm totally lost because until the redeployment today everything worked just perfectly and I did not change anything concerning the configuration.

By the way. We are using the Silverlight ReportViewer component of Q1 2012

Kind regards
Top achievements
Rank 1
answered on 24 Apr 2013, 03:06 PM
Solved by myself.

Seems I've messed around with the DLLs.

Copying the DocumentFormat.OpenXML.dll into the /bin directory worked for me.
General Discussions
Asked by
Top achievements
Rank 2
Answers by
Telerik team
Top achievements
Rank 1
Share this question