How To Enable ASP.NET Debugging Web Parts and SharePoint Solutions
Thursday, March 8, 2007, 10:51
We all make mistakes and its always helpful to get a second opinion. You need to enable debugging for either errors in our code or wanting to see the execution.
Debugging is a programmers best friend and a bug’s worst enemy.
To enable ASP.NET debugging
- Browse to the set of virtual directories for Windows SharePoint Services. Just remember, you cannot access the web.config file via your web browser as security restrictions set by IIS.
For example, c:\Inetpub\wwwroot\wss\VirtualDirectories.
- For each virtual directory
- Open the web.config file contained in the virtual directory.
- Change <compilation batch=”false” debug=”false“> to <compilation batch=”false” debug=”true“>.
- Change <customErrors mode=”On“/> to <customErrors mode=”Off“/>
- Change <SafeMode MaxControls=”200″ CallStack=”false” …/> to <SafeMode MaxControls=”200″ CallStack=”true” …/>
- Save the web.config file.
- Open a command prompt and type iisreset to restart the server.
References:
Related Posts:
Quick Tip: Could not load file or assembly System.Web.Silverlight.dllHad a collegue of mine who was working with the Silverlight Blueprint for SharePoint and after installing one of the examples, received a Server Error.
At
Debugging iFilters in MOSS/WSSThe steps we use to debug searchfilters with MOSS/ WSS are listed below:
Disable filter host termination, add Assert to suspend filter host when it starts:
MOSS
Debugging SharePoint 2007 Web Parts and WorkflowsQuick Links:
Tan Tielens Debug Tip for SharePoint Web Parts
Learn how to use Microsoft Visual Studio .NET to debug an existing Web Part assembly
How to: Debug
Latest SharePoint News 03.28.08Hopefully you have realized that Microsoft SharePoint is taking business by storm, and can start preparing to learn more about it. Here are the latest
SharepointHQ.com launches compliments of ThinkNetThinkNet Inc., a leading provider of risk-free solutions for business, today announced it has formed a separate company built around the Microsoft® SharePoint Server platform.
You can follow any responses to this entry through the
RSS 2.0 feed.
Both comments and pings are currently closed.
Shared Points for SharePoint... : How To: Creating a VS web application below a SharePoint IIS web application said on Wednesday, October 1, 2008, 22:26
[...] Enable debuging in the web.config file. [...]