0

我有一个带有 Web 服务绑定设置的 radscheduler,就像网站上的演示一样。它在我的本地机器上运行良好,在我的本地 Intranet 服务器上也运行良好。当我将它部署到公共服务器时,我收到以下错误(堆栈跟踪):

    [SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 50.62.137.146:443]
   System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +305
   System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +699

[WebException: Unable to connect to the remote server]
   System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) +3298576
   System.Net.WebClient.UploadString(Uri address, String method, String data) +319
   Telerik.Web.UI.SchedulerWebServiceClient.LoadResources(WebClient client, ResourcesPopulatingEventArgs args) +267

[Exception: Unable to retrieve response message]
   Telerik.Web.UI.SchedulerWebServiceClient.HandleWebException(WebException webEx) +311
   Telerik.Web.UI.SchedulerWebServiceClient.LoadResources(WebClient client, ResourcesPopulatingEventArgs args) +364
   Telerik.Web.UI.SchedulerWebServiceClient.GetResources() +421
   Telerik.Web.UI.RadScheduler.BindResourcesFromWebService() +90
   Telerik.Web.UI.RadScheduler.PerformSelect() +117
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +81
   System.Web.UI.Control.EnsureChildControls() +182
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +35
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +211
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +283
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +283
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +283
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +283
   Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +1450
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.PreRenderRecursiveInternal() +113
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4201

这只发生在我使用 ResourcePopulationMode="ServierSide" 时。当我将其更改为 ClientSide 时,它​​可以工作并且 Web 服务被正确调用。我正在使用提琴手来查看。我想使用分组但是不能使用 ClientSide。为什么会出现这个错误?我需要在服务器上进行一些配置设置以使 GetReources 方法正常工作吗?任何帮助将不胜感激:)谢谢

4

1 回答 1

0

I realize this is really old, but I came across this while googling for the Telerik Scheduler problem asked by user1932424.

In my case it was an AWS server (EC2/VPC) setup issue. The Security Group I had set up for that server, wasn't allowing any port to make outbound calls. After I added HTTPS outbound calls in the security group as a rule. The problem went away, allowing the Scheduler to call itself (.asmx webservice) to get data. Any firewall could cause this, an easy way to check is to see, if you can load the web application locally on the web server.

Hope this helps someone else having a similar issue.

于 2014-07-23T04:40:18.993 回答