Click here to Skip to main content
11,489,292 members (75,582 online)
Click here to Skip to main content

Disable SharePoint Service Application's Custom Errors and Enable Service Debug

, 10 May 2014 CPOL 3.6K 2
Rate this:
Please Sign up or sign in to vote.
Disable SharePoint Service Application's Custom Errors and Enable Service Debug

You may have encountered the following error in SharePoint applications. You need to enable service debug to see real exception in the application.

Sorry, something went wrong.
The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.

image

If you are in a multi farm environment, first you need to find out where your service applications are running. For an example, assume that you need to know where reporting service is running.

Go to central administration and then go to Services on this server. Here you can change the Farm machine and can see whether reporting server instance is running. So note down machines which has reporting sever instance running.

image

Then log in to those machines and find reporting service web service application in IIS.

image

For that, you can change the View to Content View and select each SharePoint Web service and see whether ReportingWebService.svc is available. If yes, it the web application corresponding to reporting service service application.

Then open the web.config and add includeExceptionDetailInFaults=”true” to enable service debug.

<serviceBehaviors>     
    <behavior>
        <serviceDebug includeExceptionDetailInFaults="false" />
    </behavior>
    <behavior name="RSExecutionBehavior">
          <serviceThrottling maxConcurrentCalls="512" maxConcurrentInstances="512" />
    </behavior>
</serviceBehaviors>

Note: If service is running on multiple machines, you need to change all related web.config.

License

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

Share

About the Author

Melick

Sri Lanka Sri Lanka
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150520.1 | Last Updated 10 May 2014
Article Copyright 2014 by Melick
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid