web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / AXology / Visual Studio – run as admi...

Visual Studio – run as administrator

Søren Rasmussen - Bredana Profile Picture Søren Rasmussen - B... 817

This is something that I generally forget whenever I create a new dev-box. Visual Studio needs to be running as Administrator otherwise you’ll get messages such as “Access to the path ‘K:\AosService\PackagesLocalDirectory\Bin\InstalledVersion.json’ is denied”:

and “Visual Studio is not running as administrator. Finance and Operations (Dynamics 365) requires Visual Studio to be running as administrator. Please restart Visual Studio as administrator”:

You can always right-click on your VS-shortcut and select “Run as administrator”, but if you’re even remotely like me, you’ll forget that approx 82% of the times.

So what you need to do is to modify the shortcut you’re using. In my case I modify the shortcut in my Taskbar. Right click on the shortcut for Visual Studio and instead of clicking “Run as administrator” you click Properties:

In the properties window you click the Advanced button:

In the window that opens up tick the “Run as administrator”:

Click OK and OK and you’re done. Next time you use the shortcut it runs VS as administrator.


This was originally posted here.

Comments

*This post is locked for comments