Skip to main content

WSS Demo

Go Search
WSS Demo
Blog
Wiki
SharePoint, MOSS & WSS Resource Links
Fantastic 40 Templates
MOSS End User Training
  
WSS Demo > SharePoint > error  

Web Part Page Title Bar image
SharePoint Custom Error Page


Site By: Ian Morrish
Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.
Hosted By:
Intergen
 
Microsoft Windows SharePoint Services 3.0 (WSS) & MOSS Demo site by Ian Morrish
You can define a custom error page for SharePoint (see Jingmei Li’s Blog) for instructions. 

Here are the PowerShell caommands I used instead of having to compile a console app (step 5 in Jingmei’s blog).

PS C:\> [System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c")
PS C:\> $webapp = [Microsoft.SharePoint.Administration.SPWebApplication]::Lookup("http://www.wssdemo.com")
PS C:\> $webapp.FileNotFoundPage = "wssdemo404.html"
PS C:\> $webapp.Update()

Now try a page that doesn’t exists like http://www.wssdemo.com/pages/deletedpage.aspx and you should be redirected back to this page.

Comment on this page...