As a local developer I'd like to be able to publish a site (via WebDeploy) from Visual Studio 2013 to an IIS (localhost) without starting Visual Studio with admin rights.
Is this possible and if so how?
I tried to Edit Permissions...
for the site and give my account Modify
rights but it doesn't seem to work... or I need to set something else too.
I did some more experimenting and tested also FTP-Deploy (ftps). It works without admin rights but it has a drawback. It's really really slow (localhost!) so I consider it as a last resort. I don't even want to think how long it runs when the site grows...
For reasons of security, the administrator permissions are required when installing Visual Studio.
IIS Express was designed to allow the most common web development and testing tasks to be performed without administrative privileges.
It doesn't work without running as administrator (or with elevated privileges).
The reason is that you need elevated privileges to the C:\inetpub\
folder, which is the default folder for IIS. You could (you shouldn't) disable UAC which is the original of this 'problem', but that is a workaround, and not a real solution.
I think creating a new website in IIS that points to another folder (one that isn't protected by UAC) solves the issue for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With