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

RadScheduler Errrors GetResources GetAppointments

4 Answers 47 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 31 Oct 2013, 11:22 PM

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

4 Answers, 1 is accepted

Sort by
0
Martin
Top achievements
Rank 1
answered on 01 Nov 2013, 03:36 PM
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
0
Bozhidar
Telerik team
answered on 05 Nov 2013, 09:00 AM
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.
0
Martin
Top achievements
Rank 1
answered on 05 Nov 2013, 02:22 PM
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
0
Bozhidar
Telerik team
answered on 08 Nov 2013, 07:15 AM
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.
Tags
Scheduler
Asked by
Martin
Top achievements
Rank 1
Answers by
Martin
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or