很奇怪,我重新启动了计算机,现在在客户端(ASP.NET)端的跟踪查看器中得到以下内容,而且页面现在也没有冻结(无响应)。我最关心的消息是它的内部异常:System.NullReferenceException,mscorlib 并说 Object reference not...
我尝试使用控制台应用程序作为 WCF 服务的客户端。回调效果很好。只有当我在 IIS 中托管我的网站并调用 WCF 服务来上传文件时(作为回报,它会回调客户端以通知上传成功/不成功)。
(我正在使用 HttpChunkingBinding)。任何的想法?
System.Runtime.FatalException, System.Runtime.DurableInstancing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 对象引用未设置为对象的实例。在 System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc) 在 System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc) 在 System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet) 在 System.ServiceModel.Dispatcher.ChannelHandler .DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext) 在 System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext) 在 System.ServiceModel.Dispatcher.ChannelHandler。DisplayClass4.<CallbackGenerator>b _2(AsyncCallback 回调,IAsyncResult 结果) 在 System.Runtime.AsyncResult.Complete(Boolean completedSynchronously) 在 System.Runtime.InputQueue 1.AsyncQueueReader.Set(Item item) at
System.Runtime.InputQueue
1.Dispatch() 在 System.ServiceModel.Channels.ReliableDuplexSessionChannel.ProcessDuplexMessage(WsrmMessageInfo 信息) 在 System.ServiceModel.Channels.ReliableDuplexSessionChannel.HandleReceiveComplete(IAsyncResult 结果) 在 System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult 结果) 在 System.Runtime.AsyncResult 的 System.ServiceModel.Channels.ReliableDuplexSessionChannel.OnReceiveCompletedStatic(IAsyncResult 结果)。在 System.ServiceModel.Channels.ReliableChannelBinder 完成(布尔完成同步)1.InputAsyncResult
1.OnInputComplete(IAsyncResult result) at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result) at System.ServiceModel.Diagnostics.TraceUtility.<>c_ DisplayClass4.<CallbackGenerator>b _2(AsyncCallback callback, IAsyncResult result) at System。 Runtime.AsyncResult.Complete(Boolean completedSynchronously) 在 System.Runtime.InputQueue1.AsyncQueueReader.Set(Item item) at
System.Runtime.InputQueue
1.Dispatch() at System.Runtime.ActionItem.DefaultActionItem.Invoke() at System.Runtime.ActionItem.CallbackHelper.InvokeWithoutContext(Object state) at System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)在 System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 错误,UInt32 bytesRead,NativeOverlapped* nativeOverlapped)在 System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode,UInt32 numBytes,NativeOverlapped* pOVERLAP) System.Runtime.FatalException:对象引用未设置为对象的实例。---> System.NullReferenceException:对象引用未设置为对象的实例。在 System.Web.HttpApplication.ThreadContext.Enter(Boolean setImpersonationContext) 在 System.DisplayClass4.<CallbackGenerator>b _2(AsyncCallback 回调,IAsyncResult 结果) 在 System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
在 System.Runtime.InputQueue 1.AsyncQueueReader.Set(Item item) at
System.Runtime.InputQueue
1.Dispatch() 在 System.ServiceModel.Channels.ReliableDuplexSessionChannel.ProcessDuplexMessage(WsrmMessageInfo 信息) 在 System.ServiceModel.Channels.ReliableDuplexSessionChannel.HandleReceiveComplete(IAsyncResult 结果) 在 System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult 结果) 在 System.Runtime.AsyncResult 的 System.ServiceModel.Channels.ReliableDuplexSessionChannel.OnReceiveCompletedStatic(IAsyncResult 结果)。在 System.ServiceModel.Channels.ReliableChannelBinder 完成(布尔完成同步)1.InputAsyncResult
1.OnInputComplete(IAsyncResult result) at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result) at System.ServiceModel.Diagnostics.TraceUtility.<>c_ DisplayClass4.<CallbackGenerator>b _2(AsyncCallback callback, IAsyncResult result) at System。 Runtime.AsyncResult.Complete(Boolean completedSynchronously)
在 System.Runtime.InputQueue1.AsyncQueueReader.Set(Item item) at
System.Runtime.InputQueue
1.Dispatch() at System.Runtime.ActionItem.DefaultActionItem.Invoke() at System.Runtime.ActionItem.CallbackHelper.InvokeWithoutContext(Object state) at System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)在 System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 错误,UInt32 bytesRead,NativeOverlapped* nativeOverlapped)在 System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode,UInt32 numBytes,NativeOverlapped* pOVERLAP)System.NullReferenceException,mscorlib,版本= 4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089 对象引用未设置为对象的实例。在 System.Web 的 System.Web.HttpApplication.ThreadContext.Enter(Boolean setImpersonationContext)。HttpApplication.OnThreadEnterPrivate(Boolean setImpersonationContext) 在 System.Web.AspNetSynchronizationContext.CallCallbackPossiblyUnderLock(SendOrPostCallback 回调,对象状态) 在 System.Web.AspNetSynchronizationContext.CallCallback(SendOrPostCallback 回调,对象状态) 在 System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc ) System.NullReferenceException:对象引用未设置为对象的实例。在 System.Web.HttpApplication.ThreadContext.Enter(Boolean setImpersonationContext) 在 System.Web.HttpApplication.OnThreadEnterPrivate(Boolean setImpersonationContext) 在 System.Web.AspNetSynchronizationContext.CallCallbackPossiblyUnderLock(SendOrPostCallback 回调,对象状态) 在 System.Web.AspNetSynchronizationContext。