在启动性能向导、选择 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/