Tuesday, 23 June 2009

Sharepoint: Show errors on web pages

sharepoint development is really tooo buggy solution for development/debugging, also it doesn't show any error after deploying your solution.
To show errors in sharepoint, do the following changes on web.config of your sharepoint site
(* your sharepoint site Path : Inetpub\wwwroot\wss\VirtualDirectories\yoursite\web.config)

Find: < SafeMode CallStack="false"
Replace with: < SafeMode CallStack="true"

Find: < customErrors mode="On"
Replace with: < customErrors mode="Off"

Find: < compilation debug="false"
Replace with: < compilation debug="true"

Save the changes, it show all errors on your checked pages...

its really so simple to debug with above.. :)


Post a Comment