כיצד נבצע Troubleshooting להודעות שגיאה כלליות בגרסת SharePoint 2010?

ב-2007, על מנת לקבל הודעות שגיאה מפורטות, נדרשנו לבצע שינוי אך ורק בקובץ Web.config בנתיב C:\inetpub\wwwroot\wss\VirtualDirectories
ולאחר מכן יכולנו לראות היכן השגיאה מתרחשת וכיצד עלינו לגשת אל הפתרון.
בגרסת 2010, אנו נדרשים לערוך בנוסף גם את קובץ Web.config הנמצא בנתיב C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS
על למנע לחשוף את הודעות השגיאה, יש לעקוב אחר סדר הפעולות הבאות:
1. נווט אל קובץ הWeb.config הרלוונטי בנתיב הבא C:\inetpub\wwwroot\wss\VirtualDirectories
1: <SharePoint>
2: <SafeMode MaxControls="200" CallStack="true" DirectFile…
3: <PageParserPaths>
4: </PageParserPaths>
5: </SafeMode>
2. פתח את הקובץ לעריכה ושנה את הערך של CallStack ל-true ו-customErrors ל-Off.
1: <httpHandlers />
2: <customErrors mode="Off" />
3: <httpRuntime maxRequestLength="51200" />
4: <authentication mode="Windows" />
3. נווט אל הנתיב הבא C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS
4. פתח את קובץ web.config לעריכה ושנה את הערך של customErrors ל-Off.
1: <system.web>
2: <compilation batch="false" batchTimeout="600" …
3: <customErrors mode="Off" />
4: <httpRuntime executionTimeout="360" />
5: <globalization fileEncoding="utf-8" />
6: </system.web>
חשוב ! מומלץ לבצע גיבוי לקבצים לפני עריכתם על מנת לאפשר מצב של חזרה לאחור.
בהצלחה,
ליאור ארביב