Comment puis-je avoir une exception non interceptée retournée comme une erreur SOAP dans mon service Web C#? Il semble que IIS «attrape» l'exception et l'affiche sur l'erreur par défaut. Ci-dessous est web.config santized.Services Web .NET - Défauts SOAP
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
</configSections>
<system.web>
<httpRuntime enableVersionHeader="false" />
<sessionState mode="Off" />
<compilation defaultLanguage="c#" debug="true" />
<authentication mode="None" />
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
<webServices>
<protocols>
<remove name="HttpPost"/>
<remove name="HttpGet"/>
<remove name="Documentation"/>
<remove name="HttpSoap12" />
</protocols>
</webServices>
</system.web>
</configuration>