[Knowledge point] VS debugging problem (C #),
Debugging cannot be started on the web server. You do not have the permission to debug the web server process. You need to run it as a user account of the web server or have administrator privileges.
Cause:Since Windows NT 6.1, both Windows Vista and Windows 8 have enhanced user control. If the system optimization software is not used for user control, the system permission is adjusted, that is, by default.
Visual Studio must be "Run as Administrator", that is, right-click "Run as Administrator", not whether the account you are currently logged on to is Administrator. Otherwise, when Visual Studio starts debugging in F5, the preceding error occurs: "You cannot start debugging on the web server. You do not have the permission to debug the web server process, you must run it as a web server user account or have administrator privileges. "
Solution:
Desktop, move the mouse over Visual Studio 2012. Right-click --> attribute
Click --> advanced
Check "Run as Administrator (R)" and then confirm. OK.
Or right-click "Run as administrator" each time ".