The server method getresources and getappointments failed

7 posts, 0 answers
  1. G S S
    G S S avatar
    85 posts
    Member since:
    Mar 2008

    Posted 25 Oct 2009 Link to this post


    I am using the Telerik Scheduler on my site. At the moment, I am doing local testing. My

    The server method getresources failed
    The server method getappointments failed

    Now I am using WCF. I have the service interface and implementation in the website project and my .svc file points to this service (path is fine).

    My service implementation looks like this:

      [ServiceContract(Namespace = "")] 
        [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] 
        [ServiceBehavior(IncludeExceptionDetailInFaults = true)] 
        public class Scheduler 
            private WebServiceAppointmentController _controller; 
            private WebServiceAppointmentController Controller 
                    if (_controller == null) 
                        _controller = 
                            new WebServiceAppointmentController( 
                                new XmlSchedulerProvider(HttpContext.Current.Server.MapPath("~/Content/Schedule.xml"), 
                    return _controller; 
            public IEnumerable<AppointmentData> GetAppointments(SchedulerInfo schedulerInfo) 
                return Controller.GetAppointments(schedulerInfo); 
            public IEnumerable<AppointmentData> InsertAppointment(SchedulerInfo schedulerInfo, AppointmentData appointmentData) 
                return Controller.InsertAppointment(schedulerInfo, appointmentData); 
            public IEnumerable<AppointmentData> UpdateAppointment(SchedulerInfo schedulerInfo, AppointmentData appointmentData) 
                return Controller.UpdateAppointment(schedulerInfo, appointmentData); 
            public IEnumerable<AppointmentData> CreateRecurrenceException(SchedulerInfo schedulerInfo, 
                                                                          AppointmentData recurrenceExceptionData) 
                return Controller.CreateRecurrenceException(schedulerInfo, recurrenceExceptionData); 
            public IEnumerable<ResourceData> GetResources(SchedulerInfo schedulerInfo) 
                return Controller.GetResources(schedulerInfo); 

    And the aspx:

          <telerik:RadScheduler ID="RadScheduler1" runat="server" Skin="Black" Visible="true" SelectedDate="2009-02-02" 
                        <Localization AdvancedAllDayEvent="All day"></Localization> 
                        <AdvancedForm DateFormat="dd/MM/yyyy" TimeFormat="HH:mm"></AdvancedForm> 
                        <WebServiceSettings Path="Service.svc" /> 

    These errors appear even if I press the buttons on the control.

    What am I missing?

  2. T. Tsonev
    T. Tsonev avatar
    2822 posts

    Posted 30 Oct 2009 Link to this post


    Can you please try to determine the exact error message from the server? You can do so using Fiddler or Firebug to inspect the response to the Web Service requests. Thank you.

    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. Manu
    Manu avatar
    5 posts
    Member since:
    Jan 2009

    Posted 18 May 2010 Link to this post

    I'm not sure if this was the asker's issue, but this problem comes up when the webservice is not configured correctly.  Make sure that the following code:


    is commented back in (it's commented out by default):


    Without this, the service won't connect properly and the error mentioned above will happen.
  4. Monsignor
    Monsignor avatar
    13 posts
    Member since:
    Dec 2008

    Posted 02 Nov 2010 Link to this post


    I see that you used the code from telerik's demo. I had issues with that demo too.

    Here is how I fixed it (note that I have extracted interface IService from my Service class):

    1) Register WCF service in web.config 
          <behavior name="">
            <serviceMetadata httpGetEnabled="true" />
            <serviceDebug includeExceptionDetailInFaults="false" />
          <behavior name="MyServiceTypeBehaviors">
            <enableWebScript />
        <service name="Service" >
          <endpoint contract="IService" behaviorConfiguration="MyServiceTypeBehaviors" binding="webHttpBinding" address="" />
      <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />

    2) Add this attribure to each method of service
    [WebGet(ResponseFormat = WebMessageFormat.Json)]

    3) Use this code in your scheduler
    <WebServiceSettings Path="Service.svc" UseHttpGet="true" ResourcePopulationMode="ServerSide" />

  5. Varun
    Varun avatar
    2 posts
    Member since:
    May 2011

    Posted 01 Sep 2011 Link to this post

    I have problem using RadScheduler on an MVC Project. It works well over http but when we use https, it gives getappointments failed error.

    Reason i have checked using Firebug is that it is not able to find the Service used.

    Please check. Gives  a 404 error.

    Please help!

  6. Peter
    Peter avatar
    6637 posts

    Posted 07 Sep 2011 Link to this post

    Hi Varun,

    Please, review this article and check if it helps -

    Note that the problem is not directly related to RadScheduler.

    Regards, Peter
    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 >>

  7. PPT
    PPT avatar
    2 posts
    Member since:
    Jan 2012

    Posted 07 May 2012 Link to this post

    I know this is an old post... but for people who land here... another thing to make sure is that you have your Path correct in your ascx.
     <WebServiceSettings Path="~/Models/Service.svc" />  etc.
    A symptom of this will be a 404 in your server's response while looking for the WS.
    Seems simple enough to miss... but can happen.
Back to Top