Decrease Font Size
Increase Font Size
   BLOG

The remote server returned an error NotFound

The remote server returned an error: NotFound the remote server returned an error not found silverlight Silverlight Webservice "The remote server returned an error: NotFound"


I was working on a Silverlight application with WCF services and stuck with some error like below:

-		
[System.ServiceModel.CommunicationException]	
{System.ServiceModel.CommunicationException: 
The remote server returned an error: NotFound. ---> System.Net.WebException: 
The remote server returned an error: NotFound. ---> System.Net.WebException: 
The remote server returned an error: NotFound.
  ...

As you can see, the error " The remote server returned an error: NotFound" really doesn't provide us much information on how to debug the problem. After doing some research on Google, I found the solution at the Silverlight forum My favorite is to enable tracing in the WCF service and Firebug from Firefox. You can also try to debug it with fiddler. Whenever there are errors, I will look into the log file to get the full details of the error message and debug the problem.

<system.serviceModel>
…
</system.serviceModel>

<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>

 

Comments (1) -

  • Leather Motorcycle Jackets

    3/14/2010 2:58:05 AM |

    I will look into the log file to get the full details of the error message and debug the problem.

Add comment

Loading