As a web developer I find myself hooking a debugger to the IIS proces all the time. In visual studio 2012 this means that you have to have elevated privileges. In general, this is not a problem, just set VS2012 to run as admin and you're done.
Doing this however makes it impossible to drag files into VS2012 from windows explorer. Being too lazy to use the open file dialog I prefer to just drag files in there.
UAC prevents you from doing this so in Windows 7 we would just turn off UAC and be done with it. In windows 8 this does not work.
There are many guides on the internet on how to disable UAC in Windows 8. Most just say you should move the slider to the button. This does however not actually disable the UAC and after trying this you can still not drag/drop files into Visual Studio 2012.
Other guides speak of disabling UAC by changing a registry setting. This turns off the UAC and allows you to drag/drop files into VS2012, but a side effect of this is that Metro apps can no longer be run. Obviously this kinda sucks too...
Does anyone have any ideas on how to be able to
Thanks in advance
The behavior you are seeing happens due to Microsoft Security mechanisms. If a non-administrative Windows user is logged on to the machine and runs a . NET tool as Administrator, the user cannot drag and drop files into the tool.
You can add handlers for drag-and-drop events to your DSL, so that users can drag items onto your diagram from other diagrams or from other parts of Visual Studio. You can also add handlers for events such as double-clicks. Together, drag-and-drop and double-click handlers are known as gesture handlers.
On the Windows desktop, right-click the Visual Studio shortcut, and then select Properties. Select the Advanced button, and then select the Run as administrator check box. Select OK, and then select OK again.
Latest version of VSCommands extension for Visual Studio 2012 allows you to run Visual Studio with Medium Integrity Level which will basically allow drag and drop from other windows. You can read more about it here and download the extension from http://visualstudiogallery.msdn.microsoft.com/a83505c6-77b3-44a6-b53b-73d77cba84c8
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