Tag Archives: sharepoint yellow screen error

How to set custom error page in SharePoint 2013/2010

Place the custom error page at “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ TEMPLATE\LAYOUTS\1033” Code :- namespace UpdateErrorPage { class Program { static void Main(string[] args) { using (SPSite site = new SPSite(“http://siteUrl”,SPUserToken.SystemAccount)) { SPWebApplication webApp = site.WebApplication; webApp.UpdateMappedPage(SPWebApplication.SPCustomPage.Error, “/_layouts/15/1033/customerror.html”); webApp.Update(); … Continue reading

Posted in SharePoint | Tagged , , , , , , , , , | Leave a comment

Custom Error Page in SharePoint 2013/2010

Open Web.Config file for your web application. For Custom Error – I change in web config tags <SafeMode MaxControls=”200″ CallStack=”false” DirectFileDependencies=”10″ TotalFileDependencies=”250″ AllowPageLevelTrace=”true”> <customErrors mode=”On” /> For Custom Error – II change in web config tags <SafeMode MaxControls=”200″ CallStack=”true” DirectFileDependencies=”10″ … Continue reading

Posted in SharePoint | Tagged , , , , , , , , , | Leave a comment