[英]'System.ServiceModel.FaultException' in System.ServiceModel.dll: Procedure not present
[英]System.ServiceModel.FaultException in System.dll
我正在嘗試使用Windows Phone SDK 7.1使用遠程ASP.NET WebMethod我有以下C#代碼:
public static PublicServices.RegisteredServicesSoapClient taarafClient;
App.taarafClient.FetchStreamCompleted +=
new EventHandler<PublicServices.FetchStreamCompletedEventArgs>(
taarafClient_FetchStreamCompleted);
運行此代碼時,我在標題中獲得異常。
我正在使用服務參考:例外情況如下:
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
詳細信息,服務器正在拋出NullReferenceException
。 這是您控制的服務嗎? 要確認它是服務 - 而不是WP7的服務客戶端 - 嘗試創建一個簡單的控制台應用程序,傳入相同的值,並查看它是否生成相同的錯誤。
但對我來說,它肯定看起來像是在服務器端的錯誤。 通過創建一個簡單的控制台應用程序,您將有希望消除它作為WP7特定問題以及在服務中修復的更普遍的問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.