1

Facebook アプリを使用して Facebook のステータスと画像を Facebook ページから Windows 8 アプリケーションに表示していますが、毎回ターゲット呼び出し例外が発生し、try catch がありますが、この例外を取り除く方法がわかりません。 . 内部例外は Facebook Wrap Exception Wrapper です。何か案は?これが私のコールスタックです:

System.Reflection.TargetInvocationException was unhandled
HResult=-2146232828
Message=An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.
  Source=System
  StackTrace:
   at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
   at Facebook.OpenReadCompletedEventArgs.get_Result()
   at Facebook.Client.FacebookSessionClient.<SendAnalytics>b__0(Object o, OpenReadCompletedEventArgs e)
   at Facebook.HttpHelper.OnOpenReadCompleted(OpenReadCompletedEventArgs args)
   at Facebook.HttpHelper.ResponseCallback(IAsyncResult asyncResult, Object userToken)
   at Facebook.HttpHelper.<>c__DisplayClass2.<OpenReadAsync>b__0(IAsyncResult ar)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.ContextAwareResult.CompleteCallback(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.ContextAwareResult.Complete(IntPtr userToken)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   at System.Net.HttpWebRequest.SetResponse(Exception E)
   at System.Net.HttpWebRequest.SetAndOrProcessResponse(Object responseOrException)
   at System.Net.ConnectionReturnResult.SetResponses(ConnectionReturnResult returnResult)
   at System.Net.Connection.CompleteConnectionWrapper(Object request, Object state)
   at System.Net.PooledStream.ConnectionCallback(Object owningObject, Exception e, Socket socket, IPAddress address)
   at System.Net.ServicePoint.ConnectSocketCallback(IAsyncResult asyncResult)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.ContextAwareResult.Complete(IntPtr userToken)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   at System.Net.Sockets.Socket.ConnectCallback()
   at System.Net.Sockets.Socket.RegisteredWaitCallback(Object state, Boolean timedOut)
   at System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(Object state, Boolean timedOut)
  InnerException: Facebook.WebExceptionWrapper
   HResult=-2146233088
   Message=Unable to connect to the remote server
       InnerException: System.Net.Sockets.SocketException
        HResult=-2147467259
        Message=A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because connected host has failed to respond 31.13.81.1:443
        Source=System
        ErrorCode=10060
        NativeErrorCode=10060
        StackTrace:
             at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
             at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
        InnerException: 
4

2 に答える 2

1

これは、Facebook の既知のバグです。Client は、GitHub リポジトリのこのリビジョンで修正されました。

https://github.com/facebook-csharp-sdk/facebook-winclient-sdk/commit/93f4c6498f32792d52fdb46d80d0c68435744c47

このバグを取り除くには、NuGet 経由でダウンロードするのではなく、最新のソースから Facebook.Client をビルドします。また、 http://facebooksdk.netで連絡を取り、Facebook.Client の NuGet バージョンを更新するように依頼することもできます。

于 2013-10-28T07:25:13.800 に答える