visual-studio-2010 - 无法在 VS 2010 中启动探查器

标签 visual-studio-2010 profiling

在启动性能向导、选择 Instrumentation、选择一个 Web 项目和几个 C# 库项目并启用 Tier Interaction Profiling 后,我得到了一个奇怪的开头:

Restoring the configuration file failed. File '...\web.config.backup.3b2912c9-3849-2724-8317-1a7da3819869' could not be copied to '...web.config'. The process cannot access the file '...\web.config' because it is being used by another process.



我还应该补充一点,有问题的 Web 应用程序托管在 IIS 中。有什么想法吗?

最佳答案

有同样的。我所做的是找出谁持有我的文件(使用来自 SysInternal 的 "process explorer" 做到了这一点)。您需要使用“查找句柄或DLL”-快捷键CTRL+F 并输入地址,它会找到相关进程。

保存我的文件的句柄是“Windows 事件收集器服务”进程,所以我杀死了它,一切都恢复正常。

关于visual-studio-2010 - 无法在 VS 2010 中启动探查器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8332004/

相关文章:

c# - 升级到 Visual Studio 2010 后使用 'var' 时出错

visual-studio-2010 - Visual Studio 未知生成错误。完全限定名称必须少于 260 个字符

visual-studio-2010 - 如何将 Visual Studio 2010 MVC 3 用于非基于 html 的项目?

C++:如何读取大文本文件并更快地保存到数组

asp.net - 我可以使用 xperf 来分析托管代码吗?

mongodb - 使用 C# 驱动程序时分析 MongoDB 查询

c# - 基于 OpenTK 的游戏间歇性卡顿

c# - VS2010 中的快速测试代码选项

c++ - 体面的 Windows 分析器?

VS 2010 中的 Silverlight 单元测试集成?