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
ASPX CODECode Behind
<%@ 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=4.0.10.317, 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> </telerik:ReportViewer> </div> </asp:Content>
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?