Filters all exceptions that occur on local requests:
Filter exceptions where the exception message contains certain words. In the example below, the words must be potentially, dangerous, value, detected and client and in the mentioned sequence. This will filter an exception where the message reads “A potentially dangerous Request.Path value was detected from the client”.
Filter exceptions of type FileNotFoundException only when an image is requested (request path ends in .jpg, .gif or .png). In addition, filters exceptions resulting from compilation or parsing errors when the request is from local host and the application has debugging enabled (typical when developing dynamically compiled pages with in-line code).
Filter exceptions of type TaskCanceledException but only when the HTTP request method is HEAD and the user agent string contains the text “Microsoft Office Existence Discovery”.
This error typically occurs when Microsoft Excel is setup with a Web Query to asynchronous request handler in your application.