Debug IIS 8 with Visual Studio 2012. Insufficient Permissions

If I try to start debugging ASP.Net MVC (3 or 4, it doesn't matter) using local IIS 8, it says (just click the 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 connect manually using DEBUG -> Attach To Process -> Show process from all users -> w3wp.exe, I get a simple message.

Unable to connect to the process. Visual Studio does not have sufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator.

Using IIS Express, it works, only full IIS 8 stops me from debugging.

I turned on Debugging in IIS -> Default Web Site -> .Net Compilation -> Debug = True

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

And, couse, I tried to run VS2012 as an administrator.

+4
source share
1 answer

VinnyG was right. Is a VSCommands problem. Testing the Medium Trust on VSCommands disables IIS debugging. enter image description here

+7
source

Source: https://habr.com/ru/post/1442778/


All Articles