The server was unable to process the request cannot be processed by the Service

Source: Internet
Author: User

During the process of WCF programming, a request that cannot be processed by the service is caused by an internal error.

The details are as follows:

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 3.0 SDK documentation and inspect the server trace logs.

Error:

The request cannot be processed due to an internal error.

Solution:

Configure the error attribute in Service Behavior:

Add the following code to the service class:

[Servicebehavior (includeexceptiondetailinfaults = true)]

This is before the service class.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.