응용 프로그램에서 WCF 서비스를 호출하면 1 분 후에 EndpointNotFoundException이 발생합니다. 모든 제한 시간은 1 분 이상입니다.Windows Phone 7에서 1 분 후 EndpointNotFoundException을 throw합니다.
var binding = new BasicHttpBinding {
OpenTimeout = TimeSpan.FromMinutes(3),
CloseTimeout = TimeSpan.FromMinutes(6),
ReceiveTimeout = TimeSpan.FromMinutes(2),
SendTimeout = TimeSpan.FromMinutes(5)
};
client = new ServiceClient(binding, new EndpointAddress("http://..."));
client.InnerChannel.OperationTimeout = TimeSpan.FromMinutes(4);
Microsoft 포럼에 스레드가 있지만 해결책이 없습니다. http://social.msdn.microsoft.com/Forums/ar/windowsphone7series/thread/cba9c633-6d79-4c04-8c08-cd0b5b33d8c6
문제는 1 분 이상 해결되는 서비스에서만 발생합니다. 이 서비스의 호출은 EndpointNotFoundException 발생 :
public string Test() {
Thread.Sleep(60000);
return "test";
}
그러나이 서비스의 호출은 제대로 작동 : 문제가 에뮬레이터 또는 장치에 occures 경우
가public string Test() {
Thread.Sleep(58000);
return "test";
}
네트워크에 대한 액세스 권한이 있습니다. 이 문제는 1 분 이상 해결되는 서비스에서만 발생합니다. PC 서비스가 올바르게 호출됩니다. –