dazinator / DnnPackager

Automate the packaging logic for your DotNetNuke projects, deploy to your IIS from within Visual Studio.
20 stars 3 forks source link

More friendly error message if not running VS as Admin #39

Open dazinator opened 8 years ago

dazinator commented 8 years ago

As encountered by @nvisionative and others, when running the Install-Module command, DnnPackager uses the WebAdministration library to query IIS to get info about the Dnn website. However this errors if not running VS with sufficient permissions. Raise a friendlier error message when this is the case asking the user to "please ensure you are running VS as Administrator"

As a secondary task, find out if its possible to set things up.in IIS in such a way that running VS as Admin is not necessary.

david-poindexter commented 8 years ago

Good idea on the first item! Regarding the secondary task, that is worth looking into for sure. Many of us use MakeDnnSite for very fast local DNN instance setup, so whatever you discover may have to be a tweak post initial setup via MakeDnnSite.

dazinator commented 8 years ago

Interestring.. not heard of makednnsite before! Sounds handy!

david-poindexter commented 8 years ago

I just sent you the MakeDNNSite app - hope it helps!