Custom faults in asmx
Ever wanted to return a custom SOAP fault from asmx without the extra information about where the error is coming from etc.? Try this:
<configuration>
<system.web>
<customErrors mode="On" />
</system.web>
</configuration>
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Ever wanted to return a custom SOAP fault from asmx without the extra information about where the error is coming from etc.? Try this:
<configuration>
<system.web>
<customErrors mode="On" />
</system.web>
</configuration>