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

Load page using RadScheduler with WebService Option outside of a intranet

1 Answer 58 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Olamide
Top achievements
Rank 1
Olamide asked on 18 Oct 2012, 10:20 PM
Is it possible to run RadScheduler using the WebService option outside of the intranet on an external IP that supposes https? 

If so, what is a viable solution for such implementation

I current use this code below in my web.config file to allow request to page that uses radscheduler on the public IP Address. And it work fine with http. 

<system.net>
   <defaultProxy>
       <proxy usesystemdefault="false"
       proxyaddress="http://xx.xxx.xx.xxx" bypassonlocal="true" />
   </defaultProxy>
</system.net>

 But when i keep i try to navigate to the https version of the site. I get the following exception:

HTTP Error 400. The request URL is invalid.

---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
   at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)
   at System.Net.WebClient.UploadString(Uri address, String method, String data)
   at Telerik.Web.UI.SchedulerWebServiceClient.LoadResources(WebClient client, ResourcesPopulatingEventArgs args)
   --- End of inner exception stack trace ---
   at Telerik.Web.UI.SchedulerWebServiceClient.HandleWebException(WebException webEx)
   at Telerik.Web.UI.SchedulerWebServiceClient.LoadResources(WebClient client, ResourcesPopulatingEventArgs args)
   at Telerik.Web.UI.SchedulerWebServiceClient.GetResources()
   at Telerik.Web.UI.RadScheduler.BindResourcesFromWebService()
   at Telerik.Web.UI.RadScheduler.PerformSelect()
   at Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource)
   at System.Web.UI.Control.EnsureChildControls()
   at System.Web.UI.Control.FindControl(String id, Int32 pathOffset)


By the looks of it, it seem that the address provided in the proxyaddress is been used when the site is access from the https version.

Is there a solution to use radscheduler with webservice option on https that is not within a intranet, but rather on a public/external ip address

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 23 Oct 2012, 10:34 AM
Hello Olamide,

Just to clarify for other people that might have stumbled upon the same issue, in your support thread you stated that you've resolved the issue by switching to using ClientMode in the WebService Setting and some adjustments to the js code.
 
Regards,
Bozhidar
the Telerik team
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 their blog feed now.
Tags
Ajax
Asked by
Olamide
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or