Free Utility Makes Creating Custom Error Pages Easy in MOSS 2007

Knowing how to write a .NET application is no longer required

A task that Microsoft Office SharePoint Server 2007 (MOSS 2007) administrators often perform is to create a custom 404 error page to specify reporting or contact information to public users. The Microsoft article "How to point to a custom 404 error web page in Windows SharePoint Services 3.0 or in Microsoft Office SharePoint Server 2007" discusses how to create this page. One step involves using Microsoft Visual Studio 2005 to create a custom console application. However, not all administrators are trained in how to write a .NET application.

One workaround is to use the SharePoint Manager 2007 utility, which you can download from the CodePlex website. After you install this free utility on your MOSS 2007 machine, follow these steps to create a custom 404 error page:

  1. Using an account that has administrative permissions, log on to your MOSS 2007 machine.
  2. Open Windows Explorer. Navigate to the %SystemDrive%\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\LangID folder, where LangID is the ID of the language that you use. The language ID for U.S. English is 1033.
  3. In the LangID folder, create an HTML file that contains the reporting or contact information you want to provide to public users. This page can be as simple as

    Reporting or contact information goes here.

  4. Launch SharePoint Manager 2007 and connect to the SharePoint web application for which you're creating the error page.
  5. Update the FileNotFoundPage property with the name of your HTML file. For example, if you named your file Custom404.html in step 3, you'd enter it this way:

    After you update the property, click file, then select the Save Changes to SharePoint option.
  6. To test your error page, launch Microsoft Internet Explorer (IE) and enter an invalid SharePoint URL, such as http://SharePointServer/aaaa.aspx. Your error page should appear.
Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.