or
using System;using Telerik.Reporting;namespace TestInheritedReport{ public class MyReport : Telerik.Reporting.Report { }}The service Telerik.Reporting.Design.Interfaces.IRootDesignerPresenter already exists in the service container. Parameter name: serviceTypeat System.ComponentModel.Design.ServiceContainer.AddService(Type serviceType, ServiceCreatorCallback callback, Boolean promote)
at System.ComponentModel.Design.ServiceContainer.AddService(Type serviceType, ServiceCreatorCallback callback)
at Telerik.Reporting.Design.VisualStudio.DependencyLoader.Initialize(IDesignerHost host)
at Telerik.Reporting.Design.ReportRootDesigner.LoadDependencies()
at Telerik.Reporting.Design.ReportRootDesigner.Initialize(IComponent component)
at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)| Me.pnlShortTerm.Size = New Telerik.Reporting.Drawing.SizeU(New Telerik.Reporting.Drawing.Unit(7.9998421669006348, Telerik.Reporting.Drawing.UnitType.Inch), New Telerik.Reporting.Drawing.Unit(1.3999999761581421, Telerik.Reporting.Drawing.UnitType.Inch)) |
ReportingService : ReportServiceBase, IReportService{ private static string _applicationPath = null; /// <summary> /// From <see cref="Telerik.Reporting.ReportServiceBase"/> /// When implemented, returns the file system path of the current application's root directory. /// It is used to resolve the relative paths of the <see cref="Telerik.Reporting.UriReportSource"/>s. /// </summary> protected override string ApplicationPath { get { if (_applicationPath == null) { _applicationPath = XXXX.Helpers.LoadExternal.GetReportsPath(); // This sets a FullName path like C:\ProgramData\OurProgram\Reports } return _applicationPath; } } .....}<telerikReporting:ReportViewer ReportServiceClientFactory="{Binding ReportServiceClientFactory}" ReportServiceUri="{Binding ReportServiceUrl}" Report="{Binding ReportName}" Visibility="{Binding ReportVisibility}" /> 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. |
|
[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?