.

[wcf: solution] The server was unable to process the request due to an internal error.

error: 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.

Solution

Enabling WCF trace:

Open config file in svcconfigeditor, from wizard, you can enable tracing and logging

STEP1:

Open config file in svcconfigeditor

STEP2:

Select Diagnostics option on left side, you will see Different tracing options on right side

STEP3:

If you just want to log soap request and response, you can choose Message Tracing
If you want trace service creation and all other activities, you can enable service tracing

Once you choose one of those options, you can choose, what level of tracing you want

(Like Verbose, or you want trace only error messages)

STEP4:

Click on Message Tracing, you will see different Message logging options, you can choose, you want to log Message at Transport level or Service level.

Reference:

http://msdn.microsoft.com/en-us/library/ms732009.aspx

Ok, Now I got trace file, How to view trace file:

Once you have log file, you can open client side trace and service side trace file in svctraceviewer and you can filter trace by different categories

http://windowssdk.msdn.microsoft.com/en-us/library/ms732023.aspx

Tracing and Logging Sample

http://msdn.microsoft.com/en-us/library/ms751526.aspx

MORE INFO ABOUT WMI AND PERF COUNTERS:

http://msdn.microsoft.com/en-us/library/ms735120.aspx

http://msdn.microsoft.com/en-us/library/ms735098.aspx

http://msdn.microsoft.com/en-us/library/ms751442.aspx

http://msdn.microsoft.com/en-us/library/ms751407.aspx

MORE INFO:

The Diagnostics tab enables you to turn performance counters on or off, enable or disable Windows Management Instrumentation (WMI), configure WCF tracing, and configure Windows Communication Foundation (WCF) message logging.

To control performance counters and WMI

Click the Diagnostics tab.

To turn on WCF performance counters, select the Enable Performance Counters check box. Clear the box to turn off the counters.

To turn on WMI, select the Enable WMI check box. Clear the box to disable WMI.

Configuring Tracing

You can create a WCF trace file with standard properties or set up a custom trace file.
To create a trace file with standard properties

Click the Diagnostics tab and click Tracing.

In the Diagnostics Tracing window that opens, click Create.

Choose a location for the trace file, and click Save.

Click OK to return to the Service Configuration Editor window.

To create a custom WCF trace file, you must configure both a source and listener.
To create a custom WCF trace file

Click the Diagnostics tab, and then click Tracing.

In the Diagnostics Tracing window that opens, on the Listeners tab, click Add.

Enter the parameters for your trace file. Clicking the TypeName line displays a “…” button. Click the “…” button to open Trace Listener Type Browser, which you can use to find preconfigured trace listeners that are already installed.

Note the Source section. Click Add in this section to open a dialog box with a drop-down menu listing available tracing sources. Select a tracing source and click OK.

To apply your changes, click OK on each window until you return to the main Service Configuration Editor window.

Configuring Message Logging

You can create a WCF message logging file with standard properties or set up a custom logging file.
To create a message logging file with standard properties

Click the Diagnostics tab and click Logging.

In the Message Logging Editor window that opens, click the Create button.

Choose a location for the log file and click Save.

Click OK to return to the Service Configuration Editor window.

To create a custom WCF message logging file, you must configure a source and a listener, as well as certain parameters.
To create a custom WCF message logging file

Click the Diagnostics tab and click Logging.

In the Message Logging Editor window that opens, on the Listeners tab, click Add.

Enter the parameters for your trace file. Clicking the TypeName line displays a “…” button. Click the “…” button to open the Trace Listener Type Browser, which you can use to find preconfigured trace listeners that are already installed.

Note the Source section. Click Add in this section to open a dialog box with a drop-down menu listing available tracing sources. Select a tracing source and click OK.

Click the Logging tab to set logging parameters. For example, you might want to set LogEntireMessage to False to help manage the size of log files.

To apply your changes, click OK on each window until you return to the main Service Configuration Editor window.

One Response to this post.

  1. Posted by Ankhsvn How To Create Tag | Fix How To on 23.04.13 at 2:49 pm

    […] [wcf: solution] The server was unable to process the … – error: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults … […]

What's your thoughts on this?

*

Protected by WP Anti Spam