Hi,
I am looking at the RadScheduler control support with web services (as well as WCF services) and interested in trying using the latest Web API against the control. Can this be done?
As a start I've done prototyping against the existing RadScheduler sample but unable to make it work. When I pointed the Web Service path to my Web API link, the system throws me the following error:
Server Error in '/' Application.
The remote server returned an error: (405) Method Not Allowed.
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.Net.WebException: The remote server returned an error: (405) Method
Not Allowed.
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:
[WebException: The remote server returned an error: (405) Method Not Allowed.]
System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) +309
System.Net.WebClient.UploadString(Uri address, String method, String data) +172
System.Net.WebClient.UploadString(String address, String method, String data) +35
Telerik.Web.UI.SchedulerWebServiceClient.GetResources() +1072
[Exception: An error occurred while requesting resources from the web service. Server responded with: "The requested resource does not support http method 'POST'."]
Telerik.Web.UI.SchedulerWebServiceClient.GetResources() +1430
Telerik.Web.UI.RadScheduler.BindResourcesFromWebService() +135
Telerik.Web.UI.RadScheduler.BindResources() +89
Telerik.Web.UI.RadScheduler.PerformSelect() +141
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
Telerik.Web.UI.RadScheduler.EnsureDataBound() +93
Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +131
Telerik.Web.UI.RadScheduler.CreateChildControls() +34
System.Web.UI.Control.EnsureChildControls() +102
System.Web.UI.Control.PreRenderRecursiveInternal() +42
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.272
Does this mean the RadScheduler does not support Web API?
Note: I could not attach the solutions files as reference (attachment only asks for .gif, .jpg, .jpeg, .png) , so if you need me to post the file please let me know how to do this.
Many thanks,
Rully