Export (0) Print
Expand All
Expand Minimize
0 out of 2 rated this helpful - Rate this topic

SPWebApplication.FileNotFoundPage Property

Windows SharePoint Services 3

Gets or sets the name of an HTML file relative to \\Program Files\Common Files\Microsoft Shared\web server extensions\12\LAYOUTS\Locale_ID that contains the error information that is used when a file cannot be found.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public string FileNotFoundPage { get; set; }

Property Value

Type: System.String
A string specifying the name of an HTML file that contains error information. If the value is a null reference (Nothing in Visual Basic) or an empty string, or if the file that is referred to does not exist, Windows SharePoint Services returns a standard 404 response.

Windows SharePoint Services does not support the custom error pages that are typically used in IIS applications. There can only be one file per SharePoint Web application, which must be in HTML and cannot contain dynamic ASP.NET controls.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.