我刚刚尝试访问属性“filenotfoundpage”,为Web应用程序和它作为null,我想知道它是否默认为空,或者如果某些内容将其更改为null。

我还想知道设置自定义页面的最佳做法,例如,我应该创建一个http.module(我已经创建的)或除了修改12个Hive中的“SPS404.html”页面之外的任何其他方式。

有帮助吗?

解决方案

The default value is null which sililar to empty string or wrong filename gives the default handling.

If having the same error page for the entire web app is OK, then I'd recommend setting SPWebApplication.FileNotFoundPage instead of using a HttpModule. Remember that the filename is relative to {SharePointRoot}\TEMPLATE\LAYOUTS{LCID} and the file should contain more that 512 bytes

许可以下: CC-BY-SA归因
scroll top