سؤال

حاولت فقط الوصول إلى الممتلكات "filenotfoundpage" للحصول على تطبيق ويب ومكعبه تماما، وأتساءل عما إذا كان لاغيا افتراضيا أو إذا تغير شيء ما إلى NULL.

أود أيضا أن أعرف ما سيكون أفضل الممارسات لإعداد صفحات مخصصة، على سبيل المثاليجب أن أقوم بإنشاء http.module (الذي قمت بإنشائه بالفعل) أو أي طريقة أخرى باستثناء تعديل الصفحة "SPS404.html" في 12 خلية.

هل كانت مفيدة؟

المحلول

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 مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top