IIS: Incorrect Error Message being thrown from Web Services

Applies to: All versions of Ephesoft Transact


You may see the following error message with the copyDocumentType web API if a document type already exists: “The custom error module does not recognize this error”.

This is different than the expected error message for this issue: “Name entered for new doctype already exists. Please enter a unique document name”.

Root Cause 

This error appears from the Microsoft IIS side and is not due to any issue in Ephesoft. This is specifically because IIS is not configured to PassThrough the existing error message.


To resolve this issue, add the following to the web.xml, located at [Ephesoft_Directory]\Application\WEB-INF:

<httpErrors errorMode="DetailedLocalOnly" existingResponse="PassThrough">