Click here to Skip to main content
15,891,607 members
Articles / Productivity Apps and Services / Sharepoint

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

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
10 May 2014CPOL1 min read 9.6K   2  
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.

XML
<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)


Written By
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 --