未处理 System.Web.HttpException 高手进。。。急急急急急急急急急
未处理 System.Web.HttpException
Message="尝试模拟时发生错误。无法继续执行此请求。"
Source="System.Web"
ErrorCode=-2147467259
StackTrace:
在 System.Web.ImpersonationContext.GetCurrentToken()
在 System.Web.ImpersonationContext.ImpersonateToken(HandleRef token)
在 System.Web.ApplicationImpersonationContext..ctor()
在 System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e)
在 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
在 System.Web.HttpRuntime.ProcessRequestNow(HttpWorkerRequest wr)
在 System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
在 System.Web.HttpRuntime.ProcessRequest(HttpWorkerRequest wr)
在 Microsoft.VisualStudio.WebHost.Request.Process()
在 Microsoft.VisualStudio.WebHost.Host.ProcessRequest(Connection conn)
在 Microsoft.VisualStudio.WebHost.Host.ProcessRequest(Connection conn)
在 Microsoft.VisualStudio.WebHost.Server.OnSocketAccept(Object acceptedSocket)
在 System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
在第一次从Debug运行,进行调试时,会出现此错误。
出现错误之后,停止调试。
第二次从Debug运行,进行调试时,就可以顺利通过,这是为什么呢?
高人请给出解决办法。