System.UriFormatException when trying to export to PDF

33 posts, 0 answers
  1. John Swenson
    John Swenson avatar
    23 posts
    Member since:
    Jan 2010

    Posted 19 Jul 2011 Link to this post

    Hello
    I get a "System.UriFormatException" when I try to export a RadScheduler to PDF.
    This i my code:
    <%@ Page Title="Scheduler" Language="C#" MasterPageFile="~/NestedMasterPage.master" AutoEventWireup="true" CodeBehind="Scheduler.aspx.cs" Inherits="MyApp.CRM.Scheduler" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
     
        <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
            <link href="../Content/forms.css" rel="stylesheet" type="text/css" />
     
            <telerik:RadAjaxManager runat="Server" ID="RadAjaxManager1">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
     
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2007">
            </telerik:RadAjaxLoadingPanel>
     
            <div class="radgrid_header">
                <asp:Label ID="Label1" runat="server" Text="Scheduler"
                    EnableViewState="False" Width="100%">
                </asp:Label>
            </div>
     
            <div style="width:100%; margin:auto;">
                <telerik:RadScheduler ID="RadScheduler1" runat="server" Culture="it-IT"
                    Skin="Office2007"
                    DataKeyField="ID"
                    DataSubjectField="Subject"
                    DataStartField="StartDate"
                    DataEndField="EndDate"
                    DataDescriptionField="Description"
                    DataRecurrenceField="RecurrenceRule"
                    DataRecurrenceParentKeyField="RecurrenceParentId.Id"
                    DataReminderField="Reminder"
                    FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"                   
                    ondatabinding="RadScheduler1_DataBinding"
                    WorkDayStartTime="08:30:00" WorkDayEndTime="19:00:00"
                    DayEndTime="20:00:00" EditFormTimeFormat="" Height="604px"
                    onappointmentdelete="RadScheduler1_AppointmentDelete"
                    onappointmentinsert="RadScheduler1_AppointmentInsert"
                    onappointmentupdate="RadScheduler1_AppointmentUpdate" ShowFooter="False"
                    DayStartTime="08:30:00" HoursPanelTimeFormat="H:mmtt"
                    StartInsertingInAdvancedForm="True" EnableExactTimeRendering="True"
                    onreminderdismiss="RadScheduler1_ReminderDismiss">
                    <AppointmentContextMenuSettings EnableDefault="true" />
                    <TimeSlotContextMenuSettings EnableDefault="true" Skin="Office2007" />
                    <ExportSettings FileName="MyAppScheduler" OpenInNewWindow="True">
                        <Pdf AllowCopy="True" Author="MyApp" Creator="MyApp" PageHeight="297mm"
                            PageWidth="210mm" PaperSize="A4" Producer="MyApp" Subject="Scheduler"
                            Title="Scheduler" />
                    </ExportSettings>
                    <AdvancedForm Modal="true" DateFormat="dd/MM/yyyy" TimeFormat="HH:mm" />
                    <MultiDayView DayEndTime="19:00:00" DayStartTime="08:30:00"
                        WorkDayEndTime="19:00:00" WorkDayStartTime="08:30:00" />
                    <WeekView WorkDayStartTime="08:30:00" WorkDayEndTime="19:00:00" />
                    <Reminders Enabled="True" />
                </telerik:RadScheduler>
            </div>
     
            <div style="text-align:right; margin-top:10px;">
                <telerik:RadButton ID="cmdPDFExport" runat="server" Text="Export to PDF"
                    OnClick="cmdPDFExport_Click">
                    <Icon PrimaryIconUrl="../Content/pdf.gif" />
                </telerik:RadButton>
            </div>
        </asp:Content>

    the code for the "cmdPDFExport_Click" event is:
    protected void cmdPDFExport_Click(object sender, EventArgs e)
    {
        RadScheduler1.ExportToPdf();
    }

    As you can see, the RadScheduler is ajaxified. If I try to ajaxify the export button too the error will go away but nothing happens.
    Please help me. Thanks.
  2. Eran
    Eran avatar
    2 posts
    Member since:
    Aug 2010

    Posted 19 Jul 2011 Link to this post

    Having the same problem with the pdf export, any solutions will be great!

     

    Server Error in '/' Application.

    Invalid URI: The Authority/Host could not be parsed.

    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.UriFormatException: Invalid URI: The Authority/Host could not be parsed.

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 20 Jul 2011 Link to this post

    Hello guys,

    This problem has already been reported by several people. We are well aware of it, but we are still not sure how to replicate it locally (except with IIS Express). We will continue our research and hopefullly resolve it for the next service pack.

    Greetings,
    Peter
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  5. Adam
    Adam avatar
    177 posts
    Member since:
    Oct 2012

    Posted 26 Jul 2011 Link to this post

    I'm getting it using the built in web development server in Visual Studio 2010 with .NET 4.0.
  6. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 29 Jul 2011 Link to this post


    Thank you, Adam. I will log this report as well.

    Kind regards,
    Peter
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  7. Adam
    Adam avatar
    177 posts
    Member since:
    Oct 2012

    Posted 29 Jul 2011 Link to this post

    For what it's worth, it works when deployed to the server (Windows Server 2008R2). Unfortunately, this doesn't help when we're trying to diagnose things or customize the output.
  8. Shannon
    Shannon avatar
    8 posts
    Member since:
    Oct 2010

    Posted 25 Aug 2011 Link to this post

    I am getting the same error. Any update on this?
  9. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    539 posts

    Posted 26 Aug 2011 Link to this post

    Hello Shannon,

    To fully simulate a problem described in a ticket we need a bit more information than just a snippet or two. Sometimes the problem lies within other components used.

    However forum threads do not have as rich attachment option as support requests. Thus, forum threads tend to be resolved slower.

    If you could open a support ticket and attach a sample project that exhibits this behaviour perhaps we'll be able to help you with your problem. We already fixed a couple of bugs related to the PDF export, but I can't tell if we addressed exactly the problem you are having.

    The sample project that you should send us doesn't need to a full project. It can be just a sample page with some styles, scripts and images. Just the bare minimum to simulate the error.

    In addition, we would like to know are you using the latest controls, and if not -- which version is it? What operating system are you using (both locally and on the deploy server); what browsers do you have installed and any other information that you think might be relevant to your case.

    With a sample project and that additional information, we'll be able to help you with the issues you are having.

    Greetings,
    Ivan Zhekov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  10. tony
    tony avatar
    13 posts
    Member since:
    Jun 2011

    Posted 30 Aug 2011 Link to this post

    I meet same problem, Guess is some Dll missing for PDF generation

    protected void btnPrint_Click(object sender, EventArgs e)

    {

    RadScheduler1.ExportToPdf();

    }

    // You need to set the Skin of the RadScheduler in order for the exported scheduler to be styled correctly

    protected void Page_PreRender(object sender, EventArgs e)

    {

    RadScheduler1.Skin =

    "Default";

    }


    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">

     <Scripts>

    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />

     <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />

     <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />

     </Scripts>

     </telerik:RadScriptManager>

     <script type="text/javascript">

     

    //Put your JavaScript code here.

     

    </script> 

    <asp:Button ID="btnPrint" runat="server" Text="Print"

    onclick="btnPrint_Click" />

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

    <AjaxSettings>

    <telerik:AjaxSetting AjaxControlID="RadScheduler1">

    <UpdatedControls>

    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />

    </UpdatedControls>

    </telerik:AjaxSetting>

    </AjaxSettings>

    </telerik:RadAjaxManager>

    <telerik:RadScheduler runat="server" ID="RadScheduler1">

    </telerik:RadScheduler>

  11. Todd A
    Todd A avatar
    43 posts
    Member since:
    Sep 2009

    Posted 31 Aug 2011 Link to this post

    I get this error too.  If there is a resolution to this, can you please post.

    Thanks,
    Todd.
  12. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 01 Sep 2011 Link to this post

    Hello Todd A,

    We will do our best to investigate the cause of the issue and fix it as soon as possible.

    Please accept my apologies for the caused inconvenience.

    Greetings,
    Veronica Milcheva
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  13. Ez Bala
    Ez Bala avatar
    8 posts
    Member since:
    Nov 2009

    Posted 13 Sep 2011 Link to this post

    Server Error in '/' Application.

    Invalid URI: The Authority/Host could not be parsed.

    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.UriFormatException: Invalid URI: The Authority/Host could not be parsed.

    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:

    [UriFormatException: Invalid URI: The Authority/Host could not be parsed.]
       System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) +6235104
       System.Uri..ctor(String uriString) +20
       System.Net.WebRequest.Create(String requestUriString) +35
       Telerik.Web.UI.Scheduler.SchedulerExporter.GetStyleSheet(String url) +175
       Telerik.Web.UI.Scheduler.SchedulerExporter.RenderControl(Page page) +467
       Telerik.Web.UI.Scheduler.SchedulerExporter.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form) +272
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109
       System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +8777773
       System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +31
       System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
       System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
       Telerik.Web.UI.Scheduler.SchedulerExporter.PdfExportRenderPage(HtmlTextWriter nullWriter, Control page) +145
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
       System.Web.UI.Page.Render(HtmlTextWriter writer) +29
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +692
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +109
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
       System.Web.UI.Page.Render(HtmlTextWriter writer) +29
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesA
    terAsyncPoint) +3060


    I m getting this error when i used to exporttopdf control in my application.
    Please give me a good solution for this problem

     
  14. Balaji
    Balaji avatar
    15 posts
    Member since:
    Sep 2011

    Posted 13 Sep 2011 Link to this post

    Hi,

      I got an error when i used exporttopdf in radscheduler. Error:  "System.UriFormatException" when I try to export a RadScheduler to PDF.

    Please give any suggestion or solution for this problem.
  15. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 14 Sep 2011 Link to this post

    Hi Balaji,

    This is a known issue which we will try to resolve as soon as possible.

    Please, accept our apologies for the caused inconvenience.

    Regards,
    Peter
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal
  16. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 21 Sep 2011 Link to this post

    Hello Ez Bala,

    I am glad to let you know that we managed to fix this problem (or at least so we think). Please, try the latest internal build and let us know if everything works well in your project. Attached is the hotfix in case you don't have access to the latest build.

    Greetings,
    Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  17. Dasha
    Dasha avatar
    80 posts
    Member since:
    Aug 2010

    Posted 22 Sep 2011 Link to this post

    Peter, here's my result:
    Server Error in '/' Application.
    --------------------------------------------------------------------------------
     
    '=' is an unexpected token. The expected token is ';'. Line 176, position 126.
    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.Xml.XmlException: '=' is an unexpected token. The expected token is ';'. Line 176, position 126.
     
    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:
     
     
    [XmlException: '=' is an unexpected token. The expected token is ';'. Line 176, position 126.]
       System.Xml.XmlTextReaderImpl.Throw(Exception e) +95
       System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos) +511
       System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr) +615
       System.Xml.XmlTextReaderImpl.ParseAttributes() +916
       System.Xml.XmlTextReaderImpl.ParseElement() +378
       System.Xml.XmlTextReaderImpl.ParseElementContent() +199
       System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r) +1053
       System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o) +75
       System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) +350
       System.Xml.Linq.XDocument.Parse(String text, LoadOptions options) +93
       Telerik.Web.UI.Scheduler.SchedulerExporter.RemoveInputAndScriptElements(String xml) +60
       Telerik.Web.UI.Scheduler.SchedulerExporter.RenderControl(Page page) +584
       Telerik.Web.UI.Scheduler.SchedulerExporter.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form) +140
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
       System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +411
       System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
       System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
       Telerik.Web.UI.Scheduler.SchedulerExporter.PdfExportRenderPage(HtmlTextWriter nullWriter, Control page) +154
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
       System.Web.UI.Page.Render(HtmlTextWriter writer) +38
       Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +647
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
       System.Web.UI.Page.Render(HtmlTextWriter writer) +38
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240
  18. tony
    tony avatar
    13 posts
    Member since:
    Jun 2011

    Posted 22 Sep 2011 Link to this post

    After I reference new dll into my project, I got new error as follow:
     

    Server Error in '/' Application.

    System.SystemException: Error while creating area : Encountered web exception while fetching image from file:///C:/Users/tdong/Documents/Visual Studio 2010/Projects/SchedulePrint/SchedulePrint/Telerik.Web.UI.WebResource.axd%3Fimgid=1e15d394c325430bac006264692a827f&type=rbi: Illegal characters in path.
    at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
    at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
    at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
    at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
    at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
    at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
    at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
    at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
    at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)

  19. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 28 Sep 2011 Link to this post

    Hello guys,

    @Dasha We could not reproduce this with any special character.

    @tony We were unable to reproduce this on our side in the standard IIS Express setup. There definitely must be something different on your end that serves as a trigger for the exception.

    So, we would like to ask you to provide us with samples (through support tickets) that we can run locally and test. Additionally, which are the versions of IIS Express, which you are using?

    Greetings,
    Simon
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  20. Dasha
    Dasha avatar
    80 posts
    Member since:
    Aug 2010

    Posted 05 Oct 2011 Link to this post

    Simon,

    This is what my data looked like:

      <?xml version="1.0" encoding="utf-8" ?>
    - <NewDataSet>
    - <Events>
      <Start_CW_Time>2009-10-13T19:00:00-07:00</Start_CW_Time>
      <CWListNameColumn><a href="http://lob.corasworks.net/Lists/Calendar/calendar.aspx" target="_self">Home/Calendar</a></CWListNameColumn>
      <End_CW_Time>2009-10-13T22:00:00-07:00</End_CW_Time>
      <Title><a href='http://lob.corasworks.net/Lists/Calendar/DispForm.aspx?ID=1&Source=http://lob.corasworks.net/pcal/default.aspx' target='_self'>dinner</a><input type='hidden' itemUrl='http://lob.corasworks.net/71442e46-6845-4cb2-82ef-2f080fc4c5e0/{5858D44B-A88A-4903-8EC7-34D678EA3B1F}' itemLink='' /></Title>
      <ID>1</ID>
      <FileDirRef>Lists/Calendar</FileDirRef>
      <FileRef>Lists/Calendar/1_.000</FileRef>
      <UniqueId>{5858D44B-A88A-4903-8EC7-34D678EA3B1F}</UniqueId>
      <EventType>0</EventType>
      <fAllDayEvent>False</fAllDayEvent>
      <AllDayEvent>false</AllDayEvent>
      <_CWResourceId_>1</_CWResourceId_>
      <_CWEventId_>1</_CWEventId_>
      <TitleCWRawViewColumn>dinner</TitleCWRawViewColumn>
      </Events>
    - <Events>
      <Start_CW_Time>2009-10-20T00:00:00-07:00</Start_CW_Time>
      <CWListNameColumn><a href="http://lob.corasworks.net/Lists/Calendar/calendar.aspx" target="_self">Home/Calendar</a></CWListNameColumn>
      <End_CW_Time>2009-10-31T00:00:00-07:00</End_CW_Time>
      <Title><a href='http://lob.corasworks.net/Lists/Calendar/DispForm.aspx?ID=2&Source=http://lob.corasworks.net/pcal/default.aspx' target='_self'>project</a><input type='hidden' itemUrl='http://lob.corasworks.net/71442e46-6845-4cb2-82ef-2f080fc4c5e0/{24041D4A-CF8C-4B34-ACC0-219879B9DE91}' itemLink='' /></Title>
      <ID>2</ID>
      <FileDirRef>Lists/Calendar</FileDirRef>
      <FileRef>Lists/Calendar/2_.000</FileRef>
      <UniqueId>{24041D4A-CF8C-4B34-ACC0-219879B9DE91}</UniqueId>
      <TimeZone>0</TimeZone>
      <EventType>0</EventType>
      <fAllDayEvent>True</fAllDayEvent>
      <AllDayEvent>true</AllDayEvent>
      <_CWResourceId_>1</_CWResourceId_>
      <_CWEventId_>2</_CWEventId_>
      <TitleCWRawViewColumn>project</TitleCWRawViewColumn>
      </Events>
      </NewDataSet>

    The links in the Subject (Title) field were causing the issue.  When I disabled the links, I got the following:

    Server Error in '/' Application.
    --------------------------------------------------------------------------------
     
    System.SystemException: Error while creating area : Encountered web exception while fetching image from http://lob.corasworks.net/Telerik.Web.UI.WebResource.axd?imgid=dd355afccab2414b8f347ed018bd83de&type=rbi: The remote server returned an error: (500) Internal Server Error.
      at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
      at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
      at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
      at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
      at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
      at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
      at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
      at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
      at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)
    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.SystemException: System.SystemException: Error while creating area : Encountered web exception while fetching image from http://lob.corasworks.net/Telerik.Web.UI.WebResource.axd?imgid=dd355afccab2414b8f347ed018bd83de&type=rbi: The remote server returned an error: (500) Internal Server Error.
      at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
      at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
      at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
      at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
      at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
      at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
      at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
      at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
      at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)
     
    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:
     
     
    [SystemException: System.SystemException: Error while creating area : Encountered web exception while fetching image from http://lob.corasworks.net/Telerik.Web.UI.WebResource.axd?imgid=dd355afccab2414b8f347ed018bd83de&type=rbi: The remote server returned an error: (500) Internal Server Error.
       at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
       at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
       at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
       at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
       at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
       at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
       at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
       at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
       at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)]
       Telerik.Web.Apoc.ApocDriver.FireApocError(String message) +133
       Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader) +860
       Telerik.Web.Apoc.ApocDriver.Render(XmlReader inputReader, Stream outputStream) +257
       Telerik.Web.UI.Scheduler.SchedulerExporter.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form) +1371
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
       System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +411
       System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
       System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
       Telerik.Web.UI.Scheduler.SchedulerExporter.PdfExportRenderPage(HtmlTextWriter nullWriter, Control page) +154
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
       System.Web.UI.Page.Render(HtmlTextWriter writer) +38
       Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +647
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
       System.Web.UI.Page.Render(HtmlTextWriter writer) +38
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240
     
      
     
     
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.4214; ASP.NET Version:2.0.50727.4209

    Hopefully this sheds a little more light on the issue.

    Dasha.
  21. Jeremy
    Jeremy avatar
    10 posts
    Member since:
    Feb 2011

    Posted 08 Oct 2011 Link to this post

    I am using the hot fix dll's and  I am getting an error message:

    The 'div' start tag on line 96 position 15 does not match the end tag of 'li'. Line 102, position 13.  I am not using a xml to load my scheduler.  I do not  know what XML it is reading or using.


  22. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 10 Oct 2011 Link to this post

    Hello again guys,

    @Dasha Thank you for posting your XML here. The '=' character is not allowed in XML values and an XMl provider cannot load it - it throws the respective exception. How are you binding your RadScheduler to that data?

    @Jeremy We still cannot track this down. We are testing all of these issues continuously without much success. There is a sample project of another customer, which we are currently investigating. Hopefully it will give us more info about the problem and its possible cause.

    Kind regards,
    Simon
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  23. Dasha
    Dasha avatar
    80 posts
    Member since:
    Aug 2010

    Posted 10 Oct 2011 Link to this post

    Simon,

    I'm willing to accept that in order to export to pdf, the item links will need to be disabled.  What more concerns me is the error that I reported after I disable the links.  Look very familiar to what tony is seeing.
  24. Jeremy
    Jeremy avatar
    10 posts
    Member since:
    Feb 2011

    Posted 10 Oct 2011 Link to this post

    I figured out the underling cause of my problem but I can't fix it. The problem is that I use a resource in timeline view. The only way I can get to print is if I take out the resource but that does me no good. My user needs to see each resouce. Do you have a working example where the resource exports to a pdf? I know the example on the your website doesn't have a resource and thats what clued me in on my problem.

    Jeremy
  25. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 11 Oct 2011 Link to this post

    Hi,

    @Dasha We are also concerned with the error and are investigating each reported case. Still we have nothing concrete.

    @Jeremy I tried exporting with resources (also grouped) without much success. Could you send us a sample project through a ticket or describe in more detail your setup and data here?

    Best wishes,
    Simon
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  26. James
    James avatar
    1 posts
    Member since:
    Sep 2011

    Posted 20 Oct 2011 Link to this post

    Thank you Peter, we had the same problem and the latest internal build resolved the issue for us.
  27. nissim
    nissim avatar
    13 posts
    Member since:
    Aug 2010

    Posted 02 Nov 2011 Link to this post

    I got this Error too,
    the 'export to pdf' works in the local host but not in the server,
    do you have any solution?
    thanks, bela
  28. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 04 Nov 2011 Link to this post

    Hi bela,

    I am not sure which of all the problems reported here you have experienced. In any way, the good news is that we managed to reproduce all of the them locally, except for one and more specifically for one of its manifestations - that with the file:/// generated link - 

    file:///C:/Users/tdong/Documents/Visual Studio 2010/Projects/SchedulePrint/SchedulePrint/Telerik.Web.UI.WebResource.axd%3Fimgid=1e15d394c325430bac006264692a827f&type=rbi: 


    So, we are currently working on the rest and will provide more info with the upcoming release.

    All the best,
    Simon
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  29. Balaji
    Balaji avatar
    15 posts
    Member since:
    Sep 2011

    Posted 29 Nov 2011 Link to this post

    In Exporttopdf setting only gives the output pdf to end of time 12:00 Pm.  After  12:00 pm  the scheduling appointments were missing in the Print Pdf form. Please, give the solution for that problem.
  30. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 01 Dec 2011 Link to this post

    Hello Balaji,

    Currently, RadScheduler exports only what is rendered on the page. We haven't extended the PDF export functionality to allow you to specify a range of time and create the corresponding number of pages. If there is an increased demand for such a feature we will consider implementing it.


    Best wishes, Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  31. Sandy
    Sandy avatar
    26 posts
    Member since:
    Mar 2012

    Posted 18 Oct 2013 Link to this post

    HI,

    I am using the Hotfix dlls

    I got the error"

    The 'div' start tag on line 91 position 38 does not match the end tag of 'a'. Line 100, position 13.

    "


    Please help me.

    If I export the calender with no appointmentments in scheduler it is working fine.
    but when I have appointments in that it is giving me error.please help me.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017