System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (502) Bad Gateway. ---> System.Net.WebException: The remote server returned an error: (502) Bad Gateway.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---
Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory`1 factory, WebException responseException, ChannelBinding channelBinding)
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at WsModelCollection.WSModelCollectionSoap.GetFullBrandCollectionWithMediaArea(Int32 idTarget, Int32 idMediaArea, REGIONS idRegion, Int32 idLanguage, Int32 yearHistoricalFleet)
at WsModelCollection.WSModelCollectionSoapClient.GetFullBrandCollectionWithMediaArea(Int32 idTarget, Int32 idMediaArea, REGIONS idRegion, Int32 idLanguage, Int32 yearHistoricalFleet) in c:\local\Temporary ASP.NET Files\root\f72c923d\5cbc5f4a\App_WebReferences.3jtg3qs7.9.cs:line 918
at FerrettiGroup.Modules.EI_Models.Zago_ucCollection.Page_Load(Object sender, EventArgs e) in c:\home\site\wwwroot\DesktopModules\EI_Models\_Zago\ucCollection.ascx.cs:line 142