visual-studio - 当我在 Azure 中运行 Visual Studio 探查器时未找到符号

标签 visual-studio azure visual-studio-2012 profiling

我正在尝试使用 Windows Azure 中的 Visual Studio Profiler 分析我的 Windows Azure 应用程序。我按照 http://msdn.microsoft.com/en-us/library/windowsazure/hh369930.aspx#BK_ProfilingCloudService 上的说明进行操作,但是我遇到了这个问题,当我从实例下载分析报告时,它找不到符号信息,并且除了函数名称的十六进制值之外什么也没有得到。探查器输出以下错误:

Warning VSP2701: F:\approot\MyApp.MyLib.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\system32\MSASN1.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\system32\slc.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\assembly\NativeImages_v4.0.30319_64\Microsoft.Build.Fra#\d172e68980f5b5930d83fc1bccfc07e3\Microsoft.Build.Framework.ni.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Framework\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Framework.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\assembly\NativeImages_v4.0.30319_64\System.Runtime.Cach#\5cf803aa1b791b9c6cf2d5167fe7d63b\System.Runtime.Caching.ni.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\assembly\NativeImages_v4.0.30319_64\System.Web.Applicat#\fdc3ab5c1ff60542a20b6950f64eeb29\System.Web.ApplicationServices.ni.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\assembly\NativeImages_v4.0.30319_64\System.DirectorySer#\770f4419204ad7db44842c6dbb86a336\System.DirectoryServices.Protocols.ni.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices.Protocols\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.Protocols.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\assembly\NativeImages_v4.0.30319_64\System.DirectorySer#\7f7a77e6e63a5169626f3c0c8c7d72a8\System.DirectoryServices.ni.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\assembly\NativeImages_v4.0.30319_64\System.Drawing\741fda6371303be2c86d23b8dcf88cc3\System.Drawing.ni.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\assembly\NativeImages_v4.0.30319_64\System.Data.SqlXml\2d6a784738e5d67e70feb68f0c53a3d8\System.Data.SqlXml.ni.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.SqlXml\v4.0_4.0.0.0__b77a5c561934e089\System.Data.SqlXml.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\assembly\NativeImages_v4.0.30319_64\System.Security\b7ad9cb6010b93a853dd647d9e1f3857\System.Security.ni.dll could not be found when looking for symbol information.
Warning VSP2701: D:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Security\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Security.dll could not be found when looking for symbol information.

等等。查看路径,这显然是在实际 Azure 实例上查找的路径(我已经通过 RDP 进入了足够多次,以识别 D:\windows 和 F:\approot 的含义)。但我正在自己的机器上查看此性能报告。那么我如何告诉探查器使用我的计算机的设置而不是 Azure 实例的设置来查找符号?

郑重声明,我正在按照链接页面中的说明进行操作,并且我已经在谷歌上进行了广泛的搜索,但一无所获。并不是说那里什么都没有,但我正在按照分析博客等中的说明进行操作,但仍然收到错误。我在 MSDN forums 上问了这个问题微软代表基本上告诉我,如果我按照说明进行操作,它肯定会起作用。

最佳答案

抱歉我没有早点看到这个。基本上问题是,当你的应用程序被分析时,许多二进制文件都会被生成。因此,如果没有正确的 pdb,系统无法解释函数地址,因此您会看到十六进制。您需要在 ngenbinary 存在的同一台计算机上生成 ngen pdb(请参阅 http://blogs.msdn.com/b/visualstudioalm/archive/2012/12/10/creating-ngen-pdbs-for-profiling-reports.aspx )。这应该可以处理大多数列为 *.ni.dll 的二进制文件。对于您自己的应用程序,在 Visual Studio 中设置符号位置应该足以找到您自己的应用程序的符号。希望这有帮助

关于visual-studio - 当我在 Azure 中运行 Visual Studio 探查器时未找到符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14360543/

相关文章:

c# - 列出 KeyVault 中的 secret 而无需登录每个 secret ?

azure - Azure 是否支持 web.config 中的 <ipsecurity/>?

c# - 处理和嵌入数据的好方法?

asp.net-mvc-2 - VS2012 中的 ASP.net MVC2 项目不起作用

c - 链接列表未显示正确的数据

visual-studio - Visual Studio NuGet/扩展安装失败并显示 "The process cannot access the file because it is being used by another process"

visual-studio - Visual Studio #if on Visual Studio 版本

visual-studio - 安装 Spacy 时出现错误 : command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 2.

git - Azure Devops pull 请求完成时发生冲突

c++ - 加快 C++ 中 double 的比较