Sunday, June 3, 2007

Enable ASP.NET dubugging for sharepoint in web.config

By default, ASP.NET debugger mode is off. To turn on do the following:

  1. Log on to the application server that you want to on the debugging
  2. reach the web.config of the web application(C:\Intetpub\wwwroot\wss\virtual folders\80\web.config) . If your application is other than 80, you need to go to that folder.
  3. Replace the below node values:



<SafeMode MaxControls="200" CallStack="false" ...>
<!-- Replace this line with-->
<SafeMode MaxControls="200" CallStack="true" ...>

<customErrors mode="On" />
<!-- Replace this line with -->
<customErrors mode="Off" />

<compilation batch="false" debug="false">
<!-- Replace this line with -->
<compilation batch="true" debug="true">
If you get have the minimal trust level, you will get the following error: Unable to read the security policy file for trust level 'WSS_Medium'
Make the following change:
<!--<trust level="WSS_Minimal" originUrl="" />-->
<trust level="Full" originUrl="" />


No comments:

Post a Comment