Frage

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.

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top