The remote server returned an error: NotFound. [modified]
-
I am try to upload files from my computer to a server machine using WCF in Silverlight. Often i can achieve this but sometimes there occurs a problem and stops uploading. Silverlight error is: "The remote server returned an error: NotFound." and at the status bar of the web page there is a black exclamation mark in yellow triangle says error at page. This is details of it: unhandled error in silverlight 2 application at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallBack beginMethod, Object state) at Syste.Net.Browser.BrowserHttpWebRequest.EndGetResponse (IAsyncResult asynResult) at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse (IAsyncResult result) at .... And after i found where error occurs (wsUploader is my WCF and svluploader is silverlight project.) public svlUploader.wsUploader.UploadResponse EndUpload(System.IAsyncResult result) { object[] _args = new object[0]; svlUploader.wsUploader.UploadResponse _result = ((svlUploader.wsUploader.UploadResponse)(base.EndInvoke("Upload", _args, result)));//<b>error occurs in this line</b> return _result; } So help me....
modified on Monday, December 14, 2009 3:37 PM
-
I am try to upload files from my computer to a server machine using WCF in Silverlight. Often i can achieve this but sometimes there occurs a problem and stops uploading. Silverlight error is: "The remote server returned an error: NotFound." and at the status bar of the web page there is a black exclamation mark in yellow triangle says error at page. This is details of it: unhandled error in silverlight 2 application at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallBack beginMethod, Object state) at Syste.Net.Browser.BrowserHttpWebRequest.EndGetResponse (IAsyncResult asynResult) at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse (IAsyncResult result) at .... And after i found where error occurs (wsUploader is my WCF and svluploader is silverlight project.) public svlUploader.wsUploader.UploadResponse EndUpload(System.IAsyncResult result) { object[] _args = new object[0]; svlUploader.wsUploader.UploadResponse _result = ((svlUploader.wsUploader.UploadResponse)(base.EndInvoke("Upload", _args, result)));//<b>error occurs in this line</b> return _result; } So help me....
modified on Monday, December 14, 2009 3:37 PM
If you haven't already, maybe try turning on the includeExceptionDetailInFaults service behavior option in the web.config... <serviceDebug includeExceptionDetailInFaults="true" /> If you can't catch the exception in the debugger, you may need to use something like Fiddler to capture the fault response with the exception info in it. Regardless, it's hard to guess without more detailed error info...
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
I am try to upload files from my computer to a server machine using WCF in Silverlight. Often i can achieve this but sometimes there occurs a problem and stops uploading. Silverlight error is: "The remote server returned an error: NotFound." and at the status bar of the web page there is a black exclamation mark in yellow triangle says error at page. This is details of it: unhandled error in silverlight 2 application at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallBack beginMethod, Object state) at Syste.Net.Browser.BrowserHttpWebRequest.EndGetResponse (IAsyncResult asynResult) at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse (IAsyncResult result) at .... And after i found where error occurs (wsUploader is my WCF and svluploader is silverlight project.) public svlUploader.wsUploader.UploadResponse EndUpload(System.IAsyncResult result) { object[] _args = new object[0]; svlUploader.wsUploader.UploadResponse _result = ((svlUploader.wsUploader.UploadResponse)(base.EndInvoke("Upload", _args, result)));//<b>error occurs in this line</b> return _result; } So help me....
modified on Monday, December 14, 2009 3:37 PM
Connect directly to your wsdl and confirm that you do not have problems with your wcf service itself. NotFound is a really poor messaging error which means basically "something's screwed up" and has nothing to do with something not being found.