Note that there are some explanatory texts on larger screens.

plurals
  1. PORunning Visual Studio with Elevated Privileges for Azure : any way to avoid the side effects?
    primarykey
    data
    text
    <p>I'm working on some Azure web apps, and in order to debug I'm running VS 2010 as Administrator (I normally right click the shortcut and run-as-admin, I'm aware that there are properties I can change or use Ctrl-Shift).</p> <blockquote> <p>Windows Azure Tools for Microsoft Visual Studio - The Windows Azure compute emulator must be run elevated. Please restart VS in elevated administrator mode in order to run the project"</p> </blockquote> <p><img src="https://i.stack.imgur.com/dyxSu.png" alt="enter image description here"></p> <p>If I do this, Azure simulator works OK, but I get two other side effects.</p> <p>1) I can't drag and drop onto the solution explorer. This is a pain. (Ctrl C/V works but I can't drop whole files into the solution explorer)</p> <p>2) I develop inside of a DropBox file structure. If I've developed on my desktop, and grab my laptop, projects in my Azure solution that are created within, and shared with, other non-azure projects fail to load. Edit: If I develop outside of dropbox, zip a copy into dropbox, unzip that on the new machine, its all fine.</p> <p>3) I get "Could not load file or assembly. Access is denied" for various DLL's used by the project - I can fix this for individual DLL's by giving permissions to Network Service but I get the error for resource files too and the same trick doesn't seem to work.</p> <p>This interworking between machines works fine without elevated privileges - I've been doing it for 2 years on about 20 projects without issue.</p> <p>So is there a way of running just the compute emulator elevated, or some other way of avoiding these side effects?</p> <ul> <li>OS Version Win 7 Pro SP1 X64</li> <li>Azure Tools for MSVS2010 Platform v1.4 (11/04/2011)</li> <li>Windows Azure SDK (11/04/2011)</li> <li>Windows Azure SDK 1.4.1 Refresh (11/04/2011)</li> <li>Windows Azure AppFabric SDK V1.0 (29/06/2011)</li> </ul> <p>Consistent over all machines</p> <p>EDIT: Having already given Network Service user all permissions to the entire folder structure to the project, I get the following error. Prior to doing that, the error was similar, but was for access to the DLL's in the project's bin folder.</p> <blockquote> <p>Parser Error Message: Access to the path 'C:\Users\ Beko2011Azure\Website\App_GlobalResources\EditorLocalization.uk-UA.resx' is denied.</p> <p>Source Error: [No relevant source lines] Source File: /App_GlobalResources/EditorLocalization.uk-UA.resx Line: 1 Version Information: Microsoft .NET Framework Version:4.0.30319; </p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload