Problem with XML file

3 posts, 0 answers
  1. Aurelio Righetti
    Aurelio Righetti avatar
    51 posts
    Member since:
    May 2009

    Posted 09 Dec 2009 Link to this post

    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. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 15 Dec 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Aurelio Righetti
    Aurelio Righetti avatar
    51 posts
    Member since:
    May 2009

    Posted 15 Dec 2009 Link to this post

    Thanks to all the staff for your job.

    Aurelio
Back to Top