1

I am currently trying my best to implement a Handler to redirect error pages on Sharepoint 2013.

Our project has a bunch of webparts that are inside pages - and when these webparts reach certain exceptions, they direct to different error pages based on the HTTP Status Code (a 404 page for not found resources, a 500 page for generic errors, and so on).

This all begun when we tried to use the custom pages with the Set-SPCustomLayoutsPage. It did not work, mainly because of an bug found in the SharePoint 2013 core.

So, we've tried a lot of alternatives:

And the list goes on. Nothing worked. And we can't update with the cumulative update right now to fix the SPCustomLayoutPages because how the version works on the side of our client - if we update it, we would need to update on the client side as well - but that's not possible at the current moment.

We've then decided to make a handler to use it to deal with all the requests, but I can't see to make it work in any way on Sharepoint 2013, even with through research.

So, how to make this handler work? How to make a generic handler that can treat all exceptions in Sharepoint and redirect as needed? And how to deploy and configure it correctly?

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.