In my SP 2010 webapp web.config file I have custom 404 error handling enabled via httpErrors:

<httpErrors errorMode="Custom" existingResponse="Auto">
  <remove statusCode="404" subStatusCode="-1" />
   <error statusCode="404" prefixLanguageFilePath="" path="/_layouts/somepath/customerrors/PageNotFound.aspx" responseMode="ExecuteURL" />

And this works fine except when trying to do something such as delete a related list item which would normally return a standard SP error message. However with the above custom error handling implemented, instead of the usual error message SP the custom 404 page is returned. On inspecting the requests in chrome debugger I can see that the culprit is owssvr.dll e.g


So why does this occur and can I prevent this and still use my custom 404 error handling? Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.