Click here to Skip to main content
16,016,249 members
Articles / WCF
Tip/Trick

Error: The server encountered an error processing the request. See server logs for more details

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
22 Nov 2011CPOL 85.5K   1   5
Error: The server encountered an error processing the request. See server logs for more details

Hi,

This issue comes into picture whenever there is any issue at WCF service.
So see more details about the issue, you need to includeexceptiondetailInfaults attribute to true in servicedebug tag.
HTML
<servicebehaviors>
        <behavior name="myServiceBehavior">
          <servicedebug includeexceptiondetailinfaults="true" />
        </behavior>
</servicebehaviors>

Either you can also add class attribute to the service class.

Happy Kooding… Hope this helps!

License

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



Comments and Discussions

 
PraiseWCF - HTTP code 400 Pin
ItzAnish10-Aug-23 12:45
ItzAnish10-Aug-23 12:45 
QuestionThanks Pin
qamar.nust11-Mar-18 20:47
qamar.nust11-Mar-18 20:47 
QuestionThanks! Pin
Kuv Patel20-Aug-15 1:50
Kuv Patel20-Aug-15 1:50 
I deployed a WCF Rest site to ISS. Works fine on wcfsvchost, but did not work at all from IIS. Your suggestion provided details about the error i.e I had to install EF on WCF Service application. Having EF installed on the WCF service library which is referenced from the WCF service app is not enough. The latter would only make the service work in wcfsvchost. The line: includeExceptionDetailInFaults="true" was added to the webconfig of the WCF Service application in order to obtain details of the error. This line was already present in the service library project.
Kuv Patel

QuestionThanks a lot, This helped me today! Pin
KNam6-Apr-15 17:13
KNam6-Apr-15 17:13 
GeneralThanks Pin
dvissu8-Dec-14 19:02
dvissu8-Dec-14 19:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.