Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

January 22, 2009 12:00 AM

Free Utility Makes Creating Custom Error Pages Easy in MOSS 2007

Knowing how to write a .NET application is no longer required
Windows IT Pro
InstantDoc ID #100958
Rating: (0)

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
    <HTML>
      <Body>
        <H1> Reporting or contact information goes here. </H1>
      </Body>
    </HTML>
    
  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.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.