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

Problem with XML file

2 Answers 68 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Aurelio Righetti
Top achievements
Rank 1
Aurelio Righetti asked on 09 Dec 2009, 06:50 PM
Hi all, i have a big problem with radscheduler and XmlSchedulerProvider, the project work fine on local with IIS7, but when upload to host and run, when insert/edit Appointments, the host save the datetime on xml file with the separator "." and cause an error.

Is work fine on local with IIS7 and creates this file OK (<Start>2009-12-11T08:00Z</Start> have a separator time ":")

<?xml version="1.0" encoding="utf-8"?> 
<Appointments> 
  <Appointment> 
    <ID>4</ID> 
    <Subject> fdEclipse</Subject> 
    <Description>dfg</Description> 
    <Start>2009-12-10T00:00Z</Start> 
    <End>2009-12-11T00:00Z</End> 
  </Appointment> 
  <Appointment> 
    <ID>5</ID> 
    <Subject> Barriera Milano </Subject> 
    <Description>Prova</Description> 
    <Start>2009-12-11T08:00Z</Start> 
    <End>2009-12-11T23:00Z</End> 
  </Appointment> 
</Appointments> 

The host when edit an appointments create this file and is wrong (<Start>2009-12-11T08.00Z</Start> have a separator time ".")
<?xml version="1.0" encoding="utf-8"?> 
<Appointments> 
  <Appointment> 
    <ID>4</ID> 
    <Subject> fdEclipse</Subject> 
    <Description>dfg</Description> 
    <Start>2009-12-10T00:00Z</Start> 
    <End>2009-12-11T00:00Z</End> 
  </Appointment> 
  <Appointment> 
    <ID>5</ID> 
    <Subject> Barriera Milano </Subject> 
    <Description>Prova</Description> 
    <Start>2009-12-11T08.00Z</Start> 
    <End>2009-12-11T23.00Z</End> 
  </Appointment> 
</Appointments> 

This is the error reported after the change of an appointment:

Server Error in '/' Application.

String was not recognized as a valid DateTime.

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.FormatException: String was not recognized as a valid DateTime.

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:

[FormatException: String was not recognized as a valid DateTime.]
System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +2835862
Telerik.Web.UI.XmlSchedulerProvider.GetAppointments(RadScheduler owner) +848
Telerik.Web.UI.RadScheduler.PerformSelect() +175
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
Telerik.Web.UI.RadScheduler.EnsureDataBound() +51
Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +63
Telerik.Web.UI.RadScheduler.CreateChildControls() +10
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +44
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

Thanks By Aurelio

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 15 Dec 2009, 11:38 AM
Hi Aurelio,

Thank you for reporting this issue. We've managed to reproduce it and to fix it. The fix will be available in the next internal build (version 2009.3.1215+) that you can download from your account on Wednesday.

We apologise for any inconvenience caused.

As a token of our gratitude for your involvement, your Telerik points have been updated.

All the best,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Aurelio Righetti
Top achievements
Rank 1
answered on 15 Dec 2009, 02:50 PM
Thanks to all the staff for your job.

Aurelio
Tags
Scheduler
Asked by
Aurelio Righetti
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Aurelio Righetti
Top achievements
Rank 1
Share this question
or