RadScheduler Errrors GetResources GetAppointments

5 posts, 0 answers
  1. Martin
    Martin avatar
    15 posts
    Member since:
    Sep 2013

    Posted 31 Oct 2013 Link to this post

    On page load I am getting two errors:
     The server method GetResources / GetAppointments Failed.
    Also if I try to insert I get "InsertAppointment" failed.

    I am using .NET MVC 4
    The Scheduler is being put on the page via a partial control.

     

    <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
     
     
     
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
     
     
     
    <form id="SchedulerForm" runat="server">
     
     
     <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
     
     
     
    </telerik:RadStyleSheetManager>
     
      
     
    <asp:ScriptManager runat="server" ID="sm1"></asp:ScriptManager>
     
      
     
    <telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
     
     
     
    <AjaxSettings>
     
     
     
    <telerik:AjaxSetting AjaxControlID="Scheduler">
     
     
     
    <UpdatedControls>
     
     
     
    <telerik:AjaxUpdatedControl ControlID="Scheduler" />
     
     
     
    </UpdatedControls>
     
     
     
    </telerik:AjaxSetting>
     
     
     
    </AjaxSettings>
     
     
     
    </telerik:RadAjaxManager>
     
     
     
    <telerik:RadScheduler runat="server" ID="Scheduler"
     
     
     
    ClientIDMode="Static"
     
     
     
    StartInsertingInAdvancedForm="True"
     
     
     
    AllowEdit="true" AllowInsert="true"
     
     
     
    >
     
     
     
     
     
     <WebServiceSettings path="/Models/SchedulerWcfService.svc" UseHttpGet="true" ResourcePopulationMode="ClientSide"/>
     
     
     
    <AdvancedForm Modal="true" />
     
     
     
    </telerik:RadScheduler
     
     
     
    >

     

     



    The path to the webservice works.

     

    <system.serviceModel>
     
     
     
     <bindings>
     
     
     
     <basicHttpBinding>
     
     
     
     <binding name="BasicHttpEndpointBinding">
     
     
     
     <security mode="TransportCredentialOnly">
     
     
     
     <transport clientCredentialType="Windows" />
     
     
     
     </security>
     
     
     
     </binding>
     
     
     
     </basicHttpBinding>
     
     
     
     </bindings>
     
     
     
     <services>
     
     
     
     <service behaviorConfiguration="AuthenticationServiceTypeBehaviors"
     
     
     
    name="DOTTReportsWebViewer.Models.SchedulerWcfService">
     
     
     
     <endpoint binding="basicHttpBinding" bindingConfiguration="BasicHttpEndpointBinding"
     
     
     
    name="BasicHttpEndpoint" contract="DOTTReportsWebViewer.Models.SchedulerWcfService" />
     
     
     
     </service>
     
     
     
     </services>
     
      
     
     <behaviors>
     
     
     
     <serviceBehaviors>
     
     
     
     <behavior name="AuthenticationServiceTypeBehaviors">
     
     
     
     <serviceMetadata httpGetEnabled="true" />
     
     
     
     <serviceDebug includeExceptionDetailInFaults="false" />
     
     
     
     </behavior>
     
      
     
     </serviceBehaviors>
     
     
     
     </behaviors>
     
      
     
     </system.serviceModel>
     
     
     
     
     
     
     
      
     
    </form
     
     
     
    >

     

     

     

     

     

    If I change :

    <WebServiceSettings path="/Models/SchedulerWcfService.svc" UseHttpGet="true" ResourcePopulationMode

     

     

    ="ClientSide"/>
    to:

    <WebServiceSettings path="/Models/SchedulerWcfService.svc" UseHttpGet="true" ResourcePopulationMode="ServerSide"/>

    I get a 401 error

  2. Martin
    Martin avatar
    15 posts
    Member since:
    Sep 2013

    Posted 01 Nov 2013 Link to this post

    I get the same error of "The server method GetAppointments failed." if I use the WCF web service (.svc) or the old school webservice (.asmx).

    -Martin
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 05 Nov 2013 Link to this post

    Hi Martin,

    When in an MVC environment you won't be able to use ResourcePopulationMode="ServerSide". The following forum topic discusses a similar issue:

    http://www.telerik.com/community/forums/aspnet-ajax/scheduler/getresources-gets-called-without-me-being-able-what-user-is-logged-in.aspx

     
    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.
  5. Martin
    Martin avatar
    15 posts
    Member since:
    Sep 2013

    Posted 05 Nov 2013 Link to this post

    When I use ServerSide I get security errors. I am NOT using ServerSide. I am using ClientSide which throws the "Server method GetAppointments failed. error. I am sorry if I did not make that clear in my original post.

    -Martin
  6. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 08 Nov 2013 Link to this post

    Hello Martin,

    Is this the same issue from the support ticket you've submitted? If so we can continue investigating it there, and once we find what was causing it, we will explain it here as well, so that others can find the answer.
     

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017