如果我尝试使用本地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 – >附加到流程 – >显示所有用户的流程 – > w3wp.exe我收到了一条simmilar消息.
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 / Network Service /我自己的帐户.
而且,我曾尝试以管理员身份运行VS2012.
解决方法
VinnyG是对的.是一个VSCommands问题.在VSCommands上检查中等信任会禁用IIS调试.