Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging website on local IIS without administrative privileges

Tags:

I have a administrative account on my machine, but due to security reasons, I don't want to run visual studio as administrator. I have ASP.NET website, windows 10, IIS8. Is there is any way way to debug website without run pool with my credentials, or run visual studio as admin, or any other method, with insufficient privileges? I wanna tune my windows to allow me debug my application, and don't use brute force like "run as admin".

For winXP exists a this article this

like image 379
Georgy Grigoryev Avatar asked Jan 07 '16 13:01

Georgy Grigoryev


People also ask

How do I debug a local IIS website?

To start debugging, select IIS Express (<Browser name>) or Local IIS (<Browser name>) in the toolbar, select Start Debugging from the Debug menu, or press F5. The debugger pauses at the breakpoints. If the debugger can't hit the breakpoints, see Troubleshoot debugging.

Do you need local admin rights to run Visual Studio?

You can do nearly everything in the Visual Studio IDE as a normal user, but, you need administrator permissions to complete the following tasks: Installing Visual Studio. Upgrading from a trial edition of Visual Studio. Installing, updating, or removing local Help content.

How do I open Visual Studio without administrator?

Right click on the Visual Studio icon. Choose Properties. Select the Compatibility tab. Unchecked Run this program as an administrator inside the Privilege Level group box.


2 Answers

As per https://msdn.microsoft.com/en-us/library/kd3se23d.aspx:

if you change the ASP.NET worker process to run under your own user account, you do not have to be an Administrator on the server that is running IIS.

like image 137
Boklucius Avatar answered Sep 18 '22 12:09

Boklucius


I can't do it (as illustrated in my question).

Boklucius's citation is accurate, but I believe that article and the current update are misleading. I found that when running the app pool under my own credentials, I'm still unable to attach unless running Visual Studio as an admin. Lex Li observed that this was due to session isolation, and right now the evidence from my experimentation suggests he's right.

like image 33
OutstandingBill Avatar answered Sep 20 '22 12:09

OutstandingBill