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.