2012年8月6日 星期一

Sharepoint Web.config 修改成Debug and trace



修改 c:\INTEPUB\WWWROOT\WSS\Virtual XXXX\80\WEB.CONFIG

Find:

<system.web> …<customErrors mode=”On” />

Change To:
<system.web> …<customErrors mode=”Off” />
Find:
<SharePoint>
<SafeMode … CallStack=”false” … >
</SharePoint>
Change To:
<SharePoint>
<SafeMode … CallStack=”true” … >
</SharePoint>

Enable Debugging Mode: Set batch and debug to “true”
Find: <compilation batch=”false” debug=”false”>
Change To: <compilation batch=”true” debug=”true”>


並在WEB.CONFIG 檔中的SYSTEM.WEB 區段中加入下行的
<trace enabled=”true” pageOutput=”true”/>


沒有留言:

張貼留言