The remote server returned an error: NotFound.
Posted
by xscape
on Stack Overflow
See other posts from Stack Overflow
or by xscape
Published on 2010-05-27T12:10:37Z
Indexed on
2010/05/27
12:31 UTC
Read the original article
Hit count: 361
Hi,
I'm trying to retrieve a string in my old webservice but it give me an error of
The remote server returned an error: NotFound.
and its InnerException is
{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.<>c_DisplayClass5.b_4(Object sendState) at System.Net.Browser.AsyncHelper.<>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)}
this is the method which error prompted, this method returns a string format
void client_ValidateUserEncryptedCompleted(object sender, DummyWS.ValidateUserEncryptedCompletedEventArgs e)
{
object token = e.Result;
client = new DummyWS.MachineHistoryWSSoapClient();
if (token != null)
{
client.GetSummaryXMLAsync(token, "", "");
}
}
I am currently using Silverlight 4.0 and my ServiceReferences.ClientConfig is
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="MachineHistoryWSSoap" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647">
<security mode="None" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost/MHVwsModified/MachineHistoryWS.asmx"
binding="basicHttpBinding" bindingConfiguration="MachineHistoryWSSoap"
contract="DummyWS.MachineHistoryWSSoap" name="MachineHistoryWSSoap" />
</client>
</system.serviceModel>
My Web.Config in my web service is
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<compilation debug="true">
<assemblies>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /></assemblies></compilation>
<authentication mode="Windows" />
</system.web>
<system.webServer>
<directoryBrowse enabled="true" />
</system.webServer>
Any help will be aprreciated thank you.
© Stack Overflow or respective owner