如果我尝试使用本地 IIS 8 开始调试 ASP.Net MVC(3 或 4,无关紧要),它会说(只需单击播放按钮):
Unable to start debugging on the web server. Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator.
如果我尝试使用 DEBUG -> Attach To Process -> Show Process From all Users -> w3wp.exe 手动附加,我会收到一条类似的消息。
Unable to attach to the process. Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator.
使用 IIS Express 它可以工作,只是完整的 IIS 8 阻止我进行调试。
我在 IIS 上启用了调试 -> 默认网站 -> .Net 编译 -> Debug = True
我还尝试将 DefaultAppPool 更改为使用 ApplicationPoolIdentity/网络服务/我自己的帐户。
而且,当然,我尝试以管理员身份运行 VS2012。
最佳答案
VinnyG 是对的。是 VSCommands 问题。在 VSCommand 上检查中等信任会禁用 IIS 调试。
关于windows-8 - 使用 Visual Studio 2012 调试 IIS 8。权限不足,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13124506/