间歇性未处理的Exception Server 2008R2 II 7

时间:2018-07-17 14:09:20

标签: exception unhandled intermittent

我正在研究两个Web服务器上的间歇性未处理异常。我们正在使用Windows 2008R2 Service Pack 1。 它似乎是在通过前端进行的登录过程中,或者是对我们宁静的webapi服务的调用。 在开始的整个登录过程中,我使用try catch并记录异常来记录用户成功,警告或失败的过程。如果失败,则不会记录成功或失败的记录。

以下是我从应用程序事件日志中捕获的异常。该线程与我的日志匹配,在该日志中我发现进程没有像往常一样被完全记录。

我已经进行了研究,但没有任何真正的帮助。任何建议将一如既往地受到赞赏。

成功登录/ webapi请求的示例

  1. GrantResourceOwnerCredentials用户:kelli@somewhere.com已输入。 IntegrationPartnerCode:1234 Referer Server context.Request.Host services.mywebapi.com
  2. 用户-kelli@somewhere.com已成功收到令牌。在服务器上-服务器2

发生异常时,永远不会记录2。 出现异常时,似乎同一线程上可能有两个用户。 以下是Windows应用程序日志中的例外 场次编码:3005 事件消息:发生未处理的异常。 活动时间:7/12/2018 12:32:15 PM 活动时间(UTC):7/12/2018 4:32:15 PM 事件ID:423a71f0338a435d997ca77298e8a752 事件顺序:1740 事件发生:3 事件详细代码:0

申请信息:     应用域:/ LM / W3SVC / 3 / ROOT-1-131758560318641060     信任等级:完整     应用程序虚拟路径:/     申请路径:
    机器名称:Server2

过程信息:     流程编号:7904     进程名称:w3wp.exe     帐户名称:IIS APPPOOL \ Server2RS

异常信息:     异常类型:ArgumentOutOfRangeException     异常消息:索引和长度必须引用字符串中的位置。 参数名称:长度    在System.String.Substring(Int32 startIndex,Int32长度)    在API.Providers2.ApplicationOAuthProvider2.d__4.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.Owin.Security.OAuth.OAuthAuthorizationServerHandler.d__3a.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter 1.GetResult() at Microsoft.Owin.Security.OAuth.OAuthAuthorizationServerHandler.<InvokeTokenEndpointAsync>d__1e.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Owin.Security.OAuth.OAuthAuthorizationServerHandler.<InvokeAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Owin.Security.Infrastructure.AuthenticationMiddleware 1.d__0.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    Microsoft.Owin.Security.Infrastructure.AuthenticationMiddleware 1.<Invoke>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNet.Identity.Owin.IdentityFactoryMiddleware 2.d__0.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.AspNet.Identity.Owin.IdentityFactoryMiddleware 2.<Invoke>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNet.Identity.Owin.IdentityFactoryMiddleware 2.d__0.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.AspNet.Identity.Owin.IdentityFactoryMiddleware`2.d__0.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.Owin.Cors.CorsMiddleware.d__0.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.d__5.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.d__2.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    在Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.EndFinalWork(IAsyncResult ar)    在System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    在System.Web.HttpApplication.ExecuteStep(IExecutionStep步骤,布尔值并已完成)

请求信息:     要求网址:http://website/Token     请求路径:/令牌     用户主机地址:     用户:
    已验证:错误     身份验证类型:
    线程帐户名称:IIS APPPOOL \ Server2RS

线程信息:     线程ID:43     线程帐户名称:IIS APPPOOL \ Server2RS

Is impersonating: False 
Stack trace:    at System.String.Substring(Int32 startIndex, Int32 length)

在API.Providers2.ApplicationOAuthProvider2.d__4.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.Owin.Security.OAuth.OAuthAuthorizationServerHandler.d__3a.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter 1.GetResult() at Microsoft.Owin.Security.OAuth.OAuthAuthorizationServerHandler.<InvokeTokenEndpointAsync>d__1e.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Owin.Security.OAuth.OAuthAuthorizationServerHandler.<InvokeAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Owin.Security.Infrastructure.AuthenticationMiddleware 1.d__0.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    Microsoft.Owin.Security.Infrastructure.AuthenticationMiddleware 1.<Invoke>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNet.Identity.Owin.IdentityFactoryMiddleware 2.d__0.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.AspNet.Identity.Owin.IdentityFactoryMiddleware 2.<Invoke>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNet.Identity.Owin.IdentityFactoryMiddleware 2.d__0.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.AspNet.Identity.Owin.IdentityFactoryMiddleware`2.d__0.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.Owin.Cors.CorsMiddleware.d__0.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContextStage.d__5.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.d__2.MoveNext() ---从之前引发异常的位置开始的堆栈结束跟踪---    在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    在Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.IntegratedPipelineContext.EndFinalWork(IAsyncResult ar)    在System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    在System.Web.HttpApplication.ExecuteStep(IExecutionStep步骤,布尔值并已完成)

自定义事件详细信息:

0 个答案:

没有答案