سؤال

I'm consuming a modern WCF web service written in .net 4.5 inside an app written in .net 2.0.

BasicHttp binding is used to allow me to access the WCF as an asmx.

Inside the WCF are custom FaultExceptions.

Is there any way that I can utilize these custom FaultExceptions in my .net 2.0 app?

هل كانت مفيدة؟

المحلول

ASMX technology did not support faults properly. Your custom FaultExceptions should be translated to a SoapException. You should then be able to look at the XML in the Detail property of the SoapException.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top