Tag Archives: remoteonly

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