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

System.UriFormatException when trying to export to PDF

32 Answers 486 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
John Swenson
Top achievements
Rank 1
John Swenson asked on 19 Jul 2011, 10:03 AM
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.

32 Answers, 1 is accepted

Sort by
0
Eran
Top achievements
Rank 1
answered on 19 Jul 2011, 05:13 PM
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
0
Peter
Telerik team
answered on 20 Jul 2011, 02:17 PM
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!

0
Adam
Top achievements
Rank 1
answered on 26 Jul 2011, 08:45 PM
I'm getting it using the built in web development server in Visual Studio 2010 with .NET 4.0.
0
Peter
Telerik team
answered on 29 Jul 2011, 12:06 PM

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.

0
Adam
Top achievements
Rank 1
answered on 29 Jul 2011, 01:06 PM
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.
0
Shannon
Top achievements
Rank 1
answered on 26 Aug 2011, 04:17 AM
I am getting the same error. Any update on this?
0
Ivan Zhekov
Telerik team
answered on 26 Aug 2011, 01:21 PM
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 >>

0
tony
Top achievements
Rank 1
answered on 30 Aug 2011, 09:49 PM
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>

0
Todd A
Top achievements
Rank 1
answered on 31 Aug 2011, 09:16 PM
I get this error too.  If there is a resolution to this, can you please post.

Thanks,
Todd.
0
Veronica
Telerik team
answered on 01 Sep 2011, 07:51 AM
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 >>

0
Ez Bala
Top achievements
Rank 1
answered on 13 Sep 2011, 05:40 AM

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

 
0
Balaji
Top achievements
Rank 1
answered on 13 Sep 2011, 05:46 AM
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.
0
Peter
Telerik team
answered on 14 Sep 2011, 11:55 AM
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
0
Peter
Telerik team
answered on 21 Sep 2011, 04:56 PM
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
0
Dasha
Top achievements
Rank 1
answered on 22 Sep 2011, 11:39 AM
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
0
tony
Top achievements
Rank 1
answered on 22 Sep 2011, 07:48 PM
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)

0
Simon
Telerik team
answered on 28 Sep 2011, 03:25 PM
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
0
Dasha
Top achievements
Rank 1
answered on 05 Oct 2011, 03:41 PM
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.
0
Jeremy
Top achievements
Rank 1
answered on 09 Oct 2011, 02:56 AM

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.


0
Simon
Telerik team
answered on 10 Oct 2011, 03:51 PM
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
0
Dasha
Top achievements
Rank 1
answered on 10 Oct 2011, 04:40 PM
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.
0
Jeremy
Top achievements
Rank 1
answered on 10 Oct 2011, 06:43 PM
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
0
Simon
Telerik team
answered on 11 Oct 2011, 01:45 PM
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
0
James
Top achievements
Rank 1
answered on 20 Oct 2011, 03:09 PM
Thank you Peter, we had the same problem and the latest internal build resolved the issue for us.
0
nissim
Top achievements
Rank 1
answered on 02 Nov 2011, 09:45 AM
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
0
Simon
Telerik team
answered on 04 Nov 2011, 06:09 PM
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
0
Balaji
Top achievements
Rank 1
answered on 29 Nov 2011, 06:43 AM
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.
0
Peter
Telerik team
answered on 01 Dec 2011, 04:02 PM
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
0
Sandy
Top achievements
Rank 1
answered on 18 Oct 2013, 07:40 PM
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.
0
Bozhidar
Telerik team
answered on 21 Oct 2013, 07:22 AM
Hello Sandy,

Are you using templates? If so, please make sure the html inside them is formatted correctly.
 

Regards,
Bozhidar
Telerik
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 the blog feed now.
0
Ulrich
Top achievements
Rank 1
answered on 08 Oct 2014, 03:32 PM
hello
So I have the same problem
Now I have the Telerik Web UI 2011-2-920 Trial hotfix.zip
installed then everything works. the problem with the version it is a trial version and I only have the besthende old license. But want currently no new license. Is it possible that I get the fixed version as a full version. If yes, finally a fault of you.
My version is the 2011.2.712.40 DEV
lg Ulli
0
Marin Bratanov
Telerik team
answered on 09 Oct 2014, 11:30 AM

Hi,

I have forwarded your query to our sales team and they should have already reached out to you via email.


Regards, Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Scheduler
Asked by
John Swenson
Top achievements
Rank 1
Answers by
Eran
Top achievements
Rank 1
Peter
Telerik team
Adam
Top achievements
Rank 1
Shannon
Top achievements
Rank 1
Ivan Zhekov
Telerik team
tony
Top achievements
Rank 1
Todd A
Top achievements
Rank 1
Veronica
Telerik team
Ez Bala
Top achievements
Rank 1
Balaji
Top achievements
Rank 1
Dasha
Top achievements
Rank 1
Simon
Telerik team
Jeremy
Top achievements
Rank 1
James
Top achievements
Rank 1
nissim
Top achievements
Rank 1
Sandy
Top achievements
Rank 1
Bozhidar
Telerik team
Ulrich
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or