Unable to connect to the remote server
Hi we've been getting the error below for sometime in our live environment, it has been causing login errors and a lot of frustration for users.
I finally got some time to look at this properly today, and my first thought was that I would remove the newsletters module, since we don't and probably will never use it.
It then occured to me to post here to see if there were any other modules that rely on the dyanmically generated proxy that I should remove while I'm at it, ( to ensure I don't get the same error with another module! ).
I've been working under the assumption that this error was related to permissions on the SiteFinity/ServiceAssemblies directory, and that the application was unable to generate the proxy file as it doesn't have write permissions.
What I just noticed in the below error, as I was depersonalising it to post, was that the WsdlHelper was trying to connect to our external live IP address, ( presumably it's using the hostname and .Net.Sockets is resolving it), our web servers are in a farm behind load balancers, and having just checked into it I've found that the routing from the web servers to the external facing IP is not available.
It seems likely that this is responsible for these errors rather than the fact that the proxy cannot be generated. (It would seem to fit with the sockets / timeout error, (whereas if the service simply didn't exist on the target server you would expect a fast 404 response ). I've put an entry into the hosts file for now, but if there isn't already it might be useful to make the hostname for this internal service reference configurable.
I think I'm still going to go ahead with removing the newsletters module, and anything else that uses the dynamic proxy ( if I can ), so info on any other modules that use this would be appreciated.
Slightly depersonalised error -- >
------------------------------------------------
Timestamp: 21/01/2009 09:48:36
Message: HandlingInstanceID: d1e269ad-f793-4aff-be5d-4a01ed469a7a
An exception of type 'System.Net.WebException' occurred and was caught.
-----------------------------------------------------------------------
01/21/2009 09:48:36
Type : System.Net.WebException, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Unable to connect to the remote server
Source : System
Help link :
Status : ConnectFailure
Response :
Data : System.Collections.ListDictionaryInternal
TargetSite : System.Net.WebResponse GetResponse()
Stack Trace : at System.Net.HttpWebRequest.GetResponse()
at Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdlFromUri(String uri, Cookie authCookie)
at Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy()
at Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri)
at Telerik.Notifications.Newsletters.DataManager.OnInitialized()
at Telerik.ManagerBase`1.Initialize()
at Telerik.ManagerBase`1..ctor(String providerName)
at Telerik.ManagerBase`1..ctor()
at Telerik.Notifications.Newsletters.DataManager..ctor()
at Telerik.Notifications.Newsletters.DataManager.get_Providers()
at Telerik.Notifications.Newsletters.DataManager.get_SecurityRoots()
at Telerik.Notifications.Newsletters.NewsletterModule.get_SecurityRoots()
at Telerik.Cms.Web.UI.Util.CheckPermissions(IModule module, Int32 perm)
at Telerik.Cms.Web.UI.MainMenuSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at Admin_Admin.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Additional Info:
MachineName : MyMachine
TimeStamp : 21/01/2009 09:48:36
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
AppDomainName : /LM/W3SVC/1/ROOT-1-123456
ThreadIdentity : adminusername
WindowsIdentity : NT AUTHORITY\NETWORK SERVICE
Inner Exception
---------------
Type : System.Net.Sockets.SocketException, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : 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 62.190.136.164:80
Source : System
Help link :
ErrorCode : 10060
SocketErrorCode : TimedOut
NativeErrorCode : 10060
Data : System.Collections.ListDictionaryInternal
TargetSite : Void DoConnect(System.Net.EndPoint, System.Net.SocketAddress)
Stack Trace : at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
Category: OurWebApp
Priority: 1
EventId: -1
Severity: Error
Title:
Machine: MyMachine
Application Domain: /LM/W3SVC/1/ROOT-1-123456
Process Id: 4504
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Win32 Thread Id: 5288
Thread Name:
Extended Properties: RawUrl - /sitefinity/admin/Pages.aspx
Connection - Keep-Alive
Accept - image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/x-shockwave-flash, */*
Accept-Language - en-gb
Cookie - cookiedatahidden
Host - www.myhost.com
Referer - http://www.myhost.com/sitefinity/admin/
User-Agent - Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)
UA-CPU - x86
X-REWRITE-URL - /sitefinity/admin/Pages.aspx
SessionID - q34vwc55kjdztq45nqvv5d45
------------------------------------------------