[Silverlight getting started series] Error debugging tracing for WCF Ria Service

Source: Internet
Author: User

This error is often returned when you use Silverlight to call remote WCF Ria service across domains: the remote server returned an error: notfound. This error cannot be debugged. What should I do? You can enable the tracing function of the WCF Ria service, record the trace file, and view it using Microsoft Service trace viewer.

Add the following content to the Web. config of the WCF Ria Service Project:

 
<System. servicemodel>
 
</System. servicemodel>
<! -- Start from here -->
 
<System. Diagnostics>
 
<Sources>
<Source Name="System. servicemodel"
 
Switchvalue="Information, activitytracing"
 
Propagateactivity="True">
<Listeners>
 
<Add Name="Tracelistener"
 
Type="System. Diagnostics. xmlwritertracelistener"
Initializedata="C: \ log \ wcfproject1tracess. svclog" />
 
</Listeners>
 
</Source>
</Sources>
 
</System. Diagnostics>
 
 

Double-click the file and you can use Microsoft Service trace viewer to open the file. An error is displayed easily when the file is opened:

 

In addition, you can also use fiddler

To use fiddler 2 to parse the data transmitted by the WCF Ria service, you need to install a plug-in. Download and decompress the package and put it in the inspectors file. Restart fiddler and you will see the options of the WCF binary.

 

 

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.