【问题标题】:Why doesn't IntelliTrace show the code?为什么 IntelliTrace 不显示代码?
【发布时间】:2010-08-11 22:56:26
【问题描述】:

我正在使用 IntelliTrace 调试 Azure 服务器中的应用程序。有时我可以看到引发异常的代码,但有时我看不到。而我看不到的各个代码的异常总是一样的。

当我双击异常开始调试时,我是否有任何理由在新选项卡中不断收到相同的消息(无可用源)?

我已经知道我需要做什么异常来解决它,但我还需要知道在哪里可以找到代码!帮助。

示例

@SLaks

我得到的异常示例如下:

"The condition specified using HTTP conditional header(s) is not met."

调用栈:

[External Code] 
    System.dll!System.Net.LazyAsyncResult.Complete(System.IntPtr userToken = {unknown}) 
[External Code] 
System.dll!System.Net.ContextAwareResult.Complete(System.IntPtr userToken = {unknown})  
System.dll!System.Net.HttpWebRequest.ProcessResponse()  
System.dll!System.Net.HttpWebRequest.SetResponse(System.Net.CoreResponseData coreResponseData = {unknown})  
System.dll!System.Net.ConnectionReturnResult.SetResponses(System.Net.ConnectionReturnResult returnResult = {unknown})   
System.dll!System.Net.Connection.ReadComplete(int bytesRead = {unknown}, System.Net.WebExceptionStatus errorStatus = {unknown}) 
System.dll!System.Net.Connection.ReadCallback(System.IAsyncResult asyncResult = {unknown})  
System.dll!System.Net.LazyAsyncResult.Complete(System.IntPtr userToken = {unknown}) 
System.dll!System.Net.Security._SslStream.ProcessFrameBody(int readBytes = {unknown}, byte[] buffer = {unknown}, int offset = {unknown}, int count = {unknown}, System.Net.AsyncProtocolRequest asyncRequest = {unknown})   
System.dll!System.Net.Security._SslStream.ReadFrameCallback(System.Net.AsyncProtocolRequest asyncRequest = {unknown})   
System.dll!System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(int bytes = {unknown})  
System.dll!System.Net.FixedSizeReader.ReadCallback(System.IAsyncResult transportResult = {unknown}) 
System.dll!System.Net.LazyAsyncResult.Complete(System.IntPtr userToken = {unknown}) 
[External Code] 
System.dll!System.Net.ContextAwareResult.Complete(System.IntPtr userToken = {unknown})  
System.dll!System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(uint errorCode = {unknown}, uint numBytes = {unknown}, System.Threading.NativeOverlapped* nativeOverlapped = {unknown})  
[External Code] 

编辑:

异常实际上是我造成的。这是一个例子:

AzureBrightWebRole.dll!AzureBright.Common.EasyPay.EasyPay.CheckFinishedPayments()   
AzureBrightWorkerRole.dll!AzureBrightWorkerRole.WorkerRole.Run()    
Microsoft.WindowsAzure.ServiceRuntime.dll!Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.StartRoleInternal() 
Microsoft.WindowsAzure.ServiceRuntime.dll!Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.StartRole() 
Microsoft.WindowsAzure.ServiceRuntime.dll!Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.AnonymousMethod()   
[External Code] 

我正在访问的网络服务似乎已停止工作。最后,我发现,这与它无关!我在本地重现了该错误,并且它发生在我的代码中。为什么我看不到发生错误的代码以及在什么条件下?虽然不能确定,但​​不记得代码改过,今天就搞定了。

【问题讨论】:

    标签: azure intellitrace


    【解决方案1】:

    IntelliTrace 仅在有代码要显示时才显示源代码。

    您发布的堆栈跟踪中的所有代码都在 .Net 框架内,因此没有可显示的源代码。

    您可能可以从.Net Framework Reference Source 获得源代码。

    这个异常以及许多类似的异常是 ASP.Net 内部的,应该被忽略。

    【讨论】:

    • 这让我感觉更舒服。但是为什么会出现这些错误呢?
    • @Fabio:当客户端行为不端、缺少可选配置文件以及其他几种情况时,会发生这些错误。
    • 我很遗憾地说我的怀疑是正确的(尽管在我在这里提出的第一个案例中它们可能是错误的)。在我刚刚介绍的第二种情况下,异常发生在我无法控制的代码中,但它们是由我引起的!在编辑部分阅读更多相关信息。
    猜你喜欢
    • 2023-03-31
    • 2013-12-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-04
    相关资源
    最近更新 更多