Click here to Skip to main content
15,886,362 members
Articles / Web Development / ASP.NET
Tip/Trick

View Actual Error in SharePoint Without 'something Went Wrong' in SharePoint (Enable Debug Mode in SharePoint)

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
13 Mar 2016CPOL 7K   1  
View real error without ‘Something went wrong’ in SharePoint, this is another better-way than viewing in the ULS

At some instances SharePoint developers my need to

Step One:

Go to your SharePoint web.config file and open it with admin privileges in a text editor(notepad).

<local file location>\inetpub\wwwroot\wss\VirtualDirectories\<SharePoint Web App>\web.config

Example:

C:\inetpub\wwwroot\wss\VirtualDirectories\8888\web.config
Step Two:

Make your compilation debug mode true.

Image 1

Step Three:

Make your Call stack true.

Image 2

Step Four:

CustomErrors mode to off.

Image 3

 

Finally:

You will be able to view the actual error without customizing it in debug mode:

Image 4

Note

It’s better if you keep a backup of the above file before you make any changes, because sometimes your modifications to SharePoint web applications web.config file may lead to loss of all you have.

Further references:

https://msdn.microsoft.com/en-us/library/ee231550.aspx

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Sri Lanka Sri Lanka
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --