gpt4 book ai didi

c# - 使用 VS : Unable to open profiler driver 进行分析时出错

转载 作者:IT王子 更新时间:2023-10-29 04:43:24 24 4
gpt4 key购买 nike

我正在运行 UAC 完全禁用的 Windows 8,这可以通过更改 registry setting 来实现(将其设置为“从不通知”不再在 Windows 8 中完全禁用它)。

当我尝试通过 Visual Studio 分析 C# 代码时,出现以下错误(单击"is"不能解决问题):

Unable to open profiler driver, would you like to upgrade credentials of [username]?

从命令行运行 vsperfcmd/Admin:Driver,START 说:

Error VSP1449: Unable to start VSPerfDrv100. This driver has been blocked from loading Try using the /Admin switch of VSPerfCmd from an elevated environment.

我显然正在使用提升的环境,因为在完全禁用 UAC 的情况下,我不再有两个安全 token ,只有管理员安全 token 。

我该如何解决这个问题?

最佳答案

这里的博文'The Visual Studio Profiler on Windows 8 ' 声明如下:

Windows 8 added logic to prevent all incompatible versions of theprofiling driver from starting (2010, 2008, and 2005).

This means that when you try to start profiling with an incompatibleversion you will receive the message “Error VSP1398: The monitor wasunable to start the VS performance driver. Access is denied. Considerusing the /Admin:Driver,Start and /Admin:Security options of VSPerfCmdfrom an elevated environment.

Which will result in the following behavior when running Visual Studio2010 (or earlier) on Windows 8.

  • CPU Sampling, .NET Memory Allocation, and Concurrency profiling will fail to start on Windows 8. The only workaround on Windows 8is to use Visual Studio 2012 Professional or higher, or to profileon Windows 7.

  • Instrumentation profiling can be launched, but the application and elapsed times will be exactly the same.

关于c# - 使用 VS : Unable to open profiler driver 进行分析时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14147508/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com