2012-12-26 18 views
5

Kodumda, https:// uç noktasına WCF istekleri yapıyorum. Bazen WCF sunucusu için ulaşılmaz olacak nedeni ne olursa olsun ve sonra benim kod verecektir ve istisna:İstemci WCF sunucusuna bağlanılamıyorken neden "sunucu yığın izlemesi" ile bir istisna alıyorum?

Server stack trace: <<<< THE QUESTION IS ABOUT THIS VERY LINE 
    at System.ServiceModel.Channels.RequestChannel.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 [my code here invoking an OperatiionContract-attributed method 

ve .InnerException başka TimeoutException geçerli:

System.TimeoutException 
The request channel timed out while waiting for a reply after 00:01:00. 
Increase the timeout value passed to the call to Request or increase 
the SendTimeout value on the Binding. The time allotted to this operation 
may have been a portion of a longer timeout. 

ve istisna .StackTrace aşağıdaki metni içerir aşağıdaki iletiyle:

The HTTP request to 'https://management.core.windows.net/subscription-id-here/ 
    services/hostedservices/service-name-here/deployments/deployment-id-here' 
has exceeded the allotted timeout of 00:01:00. The time allotted to this 
operation may have been a portion of a longer timeout. 

ne alamadım Server stack trace tutuluyordu.

İsteğim sunucu tarafından yanıtlanmadıysa neden "sunucu" oluyor?

+1

İstemci isteklerinin WCF serivce'ye ulaşmadığından emin misiniz? Belki de serviste bazı istisnalar var. – sll

+0

"1: 00" için olan zaman aşımlarını artırmayı deneyin ve daha iyi çalışıp çalışmadığını görün. –

+0

@John Saunders: "Sunucu izini" belirten bir istisna alacağım gibi mi? – sharptooth

cevap

0

Bağlantının her iki tarafında bir zaman aşımı oluşabilir; istemci veya sunucu. Bu nedenle, istisnaınıza dayanarak, istemcinin sunucuya bağlı olduğunu, ancak bir yanıtın zaman içinde üretilmediğini (sunucunun sendTimeout bağlantılarına bağlı olarak) gördüğünü, WCF'nin de gördüğünüz gibi yanıt verdiğini söyleyebilirim.

Zaman aşımı ayarlarında biraz daha fazla bilgi için bkz. http://msdn.microsoft.com/en-us/library/hh924831(v=vs.110).aspx.

İlgili konular