title: The remote server returned an error: NotFound
body: <p>I'm trying to retrieve a string in my old webservice but it give me an error of </p>
  
  <blockquote>
    <p>The remote server returned an error: NotFound.</p>
  </blockquote>
  
  <p>and its InnerException is </p>
  
  <blockquote>
    <p>{System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
       at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
       at System.Net.Browser.BrowserHttpWebRequest.&lt;>c__DisplayClass5.b__4(Object sendState)
       at System.Net.Browser.AsyncHelper.&lt;>c__DisplayClass2.b__0(Object sendState)
       --- End of inner exception stack trace ---
       at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
       at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)}</p>
  </blockquote>
  
  <p>this is the method where error prompted, this method returns a string format</p>
  
  <pre><code>void client_ValidateUserEncryptedCompleted(object sender, DummyWS.ValidateUserEncryptedCompletedEventArgs e)
      {
          object token = e.Result;
          client = new DummyWS.MachineHistoryWSSoapClient();
          if (token != null)
          {
              client.GetSummaryXMLAsync(token, "", "");
          }
      }
  </code></pre>
  
  <p>I am currently using Silverlight 4.0 and my ServiceReferences.ClientConfig is</p>
  
  <pre><code>&lt;configuration&gt;
  &lt;system.serviceModel&gt;
      &lt;bindings&gt;
          &lt;basicHttpBinding&gt;
              &lt;binding name="MachineHistoryWSSoap" maxBufferSize="2147483647"
                  maxReceivedMessageSize="2147483647"&gt;
                  &lt;security mode="None" /&gt;
              &lt;/binding&gt;
          &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
          &lt;endpoint address="http://localhost/MHVwsModified/MachineHistoryWS.asmx"
              binding="basicHttpBinding" bindingConfiguration="MachineHistoryWSSoap"
              contract="DummyWS.MachineHistoryWSSoap" name="MachineHistoryWSSoap" /&gt;
      &lt;/client&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p></p>
  
  <p>My Web.Config in my web service is </p>
  
  <pre><code>&lt;configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"&gt;
  &lt;system.web&gt;
      &lt;compilation debug="true"&gt;
          &lt;assemblies&gt;
              &lt;add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /&gt;&lt;/assemblies&gt;&lt;/compilation&gt;
      &lt;authentication mode="Windows" /&gt;
  &lt;/system.web&gt;
  &lt;system.webServer&gt;
      &lt;directoryBrowse enabled="true" /&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p></p>
  
  <p>Any help will be aprreciated thank you.</p>