I am trying to consume a remote ASP.NET WebMethod using the Windows Phone SDK 7.1 I have the following C# Code:
public static PublicServices.RegisteredServicesSoapClient taarafClient;
App.taarafClient.FetchStreamCompleted +=
new EventHandler<PublicServices.FetchStreamCompletedEventArgs>(
taarafClient_FetchStreamCompleted);
When running this code I am getting the exception in the title.
I am using a Service Reference: The exception is here:
public Taaraf.PublicServices.FetchStreamResponse EndFetchStream(
System.IAsyncResult result)
{
object[] _args = new object[0];
Taaraf.PublicServices.FetchStreamResponse _result =
(Taaraf.PublicServices.FetchStreamResponse)
base.EndInvoke("FetchStream", _args, result);
return _result;
}
InnerException
on theFaultException
? – MrMDavidsonFetchStream
method expecting for the args parameter? (I was not aware you could actually serialize a zero length array, does passing null instead of _args work?). – Gone Coding