문제

If I try to start debugging an ASP.Net MVC (3 or 4, doesn't matter) using a local IIS 8 it says (just clicking play button):

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.

If I try to attach manually with DEBUG -> Attach To Process -> Show Process From all Users -> w3wp.exe I get a simmilar message.

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.

Using IIS Express it works, just the full IIS 8 is stopping me from debugging.

I've enabled Debugging on IIS -> Default Web Site -> .Net Compilation -> Debug = True

I've also tried changing the DefaultAppPool to use ApplicationPoolIdentity / Network Service / My own Account.

And, of couse, I've tried to run VS2012 as administrator.

도움이 되었습니까?

해결책

VinnyG was right. Is a VSCommands problem. Checking Medium Trust on VSCommands disables IIS debug. enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top