Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SPWebApplication.FileNotFoundPage property

Gets or sets the name of an HTML file relative to \\Program Files\Common Files\Microsoft Shared\web server extensions\14\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, SharePoint Foundation returns a standard 404 response.

SharePoint Foundation 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.