Running Visual Studio with elevated privileges for Azure: any way to avoid side effects?

I am working on some Azure web applications and for debugging. I start VS 2010 as an administrator (usually I right-click the shortcut and start-as-admin, I know that there are properties that I can change or use Ctrl-Shift).

Windows Azure Tools for Microsoft Visual Studio - Windows Azure Compute Emulator should be enhanced. Please restart VS in elevated administrator mode to start the project.

enter image description here

If I do, the Azure simulator works fine, but I get two other side effects.

1) I can not drag it into the solution explorer. It is a pain. (Ctrl C / V works, but I cannot drop whole files into the solution explorer)

2) I am developing inside the DropBox file structure. If I developed on my desktop and grabbed my laptop, projects in my Azure solution that are created internally and shared by other non-azure projects are not loaded. Edit: if I create outside the dropbox, fasten the copy in Dropbox, unzip it to the new machine, everything is in order.

3) I get: "Could not load file or assembly, access denied" for various DLLs used by the project - I can fix this for a separate DLL by granting permissions for Network Service, but I also get an error for resource files and the same trick. doesn't seem to work.

This interaction between machines works fine without elevated privileges - I have been doing this for 2 years on about 20 projects without problems.

So, is there a way to run only a calculation emulator, or any other way to avoid these side effects?

  • OS version Win 7 Pro SP1 X64
  • Azure Tools for MSVS2010 v1.4 platform (04/11/2011)
  • Windows Azure SDK (04/11/2011)
  • Windows Azure SDK 1.4.1 Update (04/11/2011)
  • Windows Azure AppFabric SDK V1.0 (06/29/2011)

Matching all machines

EDIT: Having already granted the Network Service user all permissions for the entire folder structure for the project, I get the following error. Prior to this, the error was similar, but was intended to access the DLL in the bin folder of the project.

Parser error message: access to the path "C: \ Users \ Beko2011Azure \ Website \ App_GlobalResources \ EditorLocalization.uk-UA.resx" is denied.

Source Error: [No matching source lines] Source file: /App_GlobalResources/EditorLocalization.uk-UA.resx Line: 1 Version Information: Microsoft.NET Framework Version: 4.0.30319;

+7
source share
2 answers

As for # 1, you can still use CTRL + C and CTRL + V in the solution explorer. For everything you described, elevated privileges are probably not a problem. This has nothing to do with Azure tools. I installed them on several machines, and VS works elevated (I always use the elevated mode, because otherwise debugging is not possible in IIS). I never have any problems with it.

Access denied for DLL / file may be Dropbox error. Have you successfully used this type of file structure in any other projects?

I have no idea what you mean by number 2. What does not load? Azure projects? And do you have an SDK installed on all machines? Same version? You marked the website as hosted by IIS - this also prevents the download of projects.

Also update the message: OS version, Azure SDK version ...

Refresh : View your error message. I canโ€™t help but wonder why the problem is caused by Dropbox lock files, which are necessary, and then these files will not be available to IIS as needed. Could you try to kill the Dropbox service and check if the application is working correctly at this moment?

+1
source

Compared to Azure SDK 2.1, you no longer need to run the emulator with elevated privileges. See my answer here.

+1
source

All Articles