Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug IIS 8 with Visual Studio 2012. Insufficient Permissions

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.

like image 879
Olmo Avatar asked Oct 29 '12 15:10

Olmo


1 Answers

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

like image 110
Olmo Avatar answered Nov 14 '22 19:11

Olmo