Visual Studio - AnkhSvn, TortoiseSVN, Pageant - visual-studio-2010

I am using Visual Studio 2010 with AnkhSvn for Visual Studio work and TortoiseSVN for other legacy projects on the same machine.
I connect to the SVN server using SSH keys held in PageAnt, to prevent continual prompting for my password. This works until I need to run VS2010 as an administrator, at which point AnkhSvn prompts for my password every time I need to update/commit etc.. to the server.
Which was fine, but whenever I try to run the AnkhSvn Merge Wizard, it hangs, after the select source stage and I have to forcilbly end the VS2010 process.
I can workaround this by running PageAnt as administrator whenever running VS2010 as administrator. But this has the side effect that TortoiseSVN will prompt for my SSH password.
It seemed logical to try to run two instances of pageant, one as an administrator and one the normal way, however PageAnt will not allow two instances to run.
Has anyone a workaround so I can use TortoiseSVN and AnkhSVN together, using PageAnt for authentication, regardless of whether I run VS2010 as an administrator?

Windows apps can be built to not allow for duplicate processes to be run. You'll have to get the pageant team to change that.
You could run the admin instances in a virtual machine, though that may not be worth the trouble in this situation; your call.

Related

another instance of an application is already in process - visual studio 2013

I am attempting to log into Microsoft Visual Studio, so I can connect to TFS, and I am unable to login.
After I enter my credentials, it acts like everything is good to go but I do not login in the top right. When I hover over Sign in I get an error stating "Another instance of the application is already in the process of signing in."
I did just remove my user settings because of another issue not allowing me to actually connect to anything because I just branched a product.
I have attempted to shutdown the computer, restart visual Studio, reinstall visual studio and I also reinstalled microsoft office; as well as. added the two sites mentioned from another forum to my trusted sites (*.accesscontrol.windows.net)(https://app.vsaex.visualstudio.com/me?mkt=en-US). if anyone has any information on this that would be greatly appreciated. Thank You
Just try below things to narrow down the VS sign in issue:
Disable any Anti-Virus or Anti-Spyware software on your
computer, navigate to <Visual Studio Installation Path>\Common7\IDE
and run the following commands: devenv.exe /resetuserdata, it will
take a couple of minutes to run as Visual Studio cleans up and sets
itself back to its original state.
Close visual studio --> delete the following registry key
HKEY_CURRENT_USER\SOFTWARE\Microsoft\VSCommon\ConnectedUser\IdeUserV2
--> restart visual studio --> Try and sign in
Remove credenticals from Credential Manager (Control Panel\All
Control Panel Items\Credential Manager)
Clean VS caches:
Close Visual Studio (ensure devenv.exe is not present in the Task
Manager)
Delete the %USERPROFILE%\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache directory
Restart Visual Studio.
Open the following file in notepad:
C:\windows\system32\drivers\etc\hosts
Add
65.52.55.39 and app.vsspsext.visualstudio.com then re-open vs and try the sign in again.
However it's not necessary to sing in Visual Studio if you just want to connect to TFS. You can only manage the connections in Team Explorer. When you add a new TFS server and try to connect, it will prompt to enter the credetical. Just enter the appropriate TFS credentical to connect the TFS server.

Unable to launch Visual Studio 2015 as a different user

In order to limit my own destructive powers, I have two domain accounts, one for normal work and one for TFS admin stuff. For years I have been using the Run as different user feature for opening another Visual Studio window as my admin account whenever I need to do admin stuff. Both users is members of the local administrator group.
About a month ago this stopped working resulting in the below dialog instead of launching Visual Studio. Both option does nothing - no Visual Studio launches. The suggested link http://go.microsoft.com/fwlink/?LinkId=659046, refer to older Visual Studio versions: 2005, 2008 and 2010. I have Visual Studio 2015 Update 3 installed with the latest cumulative servicing update.
I have a feeling that it started after I installed Windows 10 1607 (Anniversary Update) - before I had Windows 10 1511, but I am not sure that something else caused the change. It is possible to open a command prompt as but admin user, but launching Visual Studio from here results in the same dialog. I have tried on another machine with 1607 with same result, and I can still get it to work on a machine with 1511. I have also tried with another user, but again the result is the same.
A workaround is using the Switch User feature of Windows but this makes it impossible to have a window e.g. Outlook open as my normal user switching back and forth.
Any suggestion on how to get around this?
Try to run Visual Studio using this command instead:
runas /netonly /user:<account> devenv.exe
This should be enough to have Visual Studio under a context of another Windows user so it can connect to remote TFS with different credentials.
I'm running the SQL Server Management Studio as different user this way so I can manage remote SQL servers from different Windows domains.
PS: I tried to run Visual Studio 2015 Update 3 on Windows 10 version 1607 as different Windows account (standard user account without admin rights) and I got the same warning about the admin rights.
I have a tried solution which works for me which is I just make the run-as user account to the local administrators group of the computer you are running it from.

Visual Studio 2005 Output file requires Administrative Privileges

Using Visual Source Safe 2005, I downloaded a jobmate's project in my computer and built it correctly, but when I press "play" to debug it I receive an error message telling me that I need higher privileges.
Looking around, I've noticed that the freshly build program has the little shield icon that means that I need administrator permission to run it and actually, if I run it outside Visual Studio, I manage to execute it after the UAC question.
I'm domain and local administrator so I can disable UAC, but I don't think this is the solution, so: what can make my program to require administrative privileges?

Unable to get Visual Studio 2010 on Win7 64bit to remember Visual Source Safe password

Whenever I open a solution that is under VSS control, I get prompted for my password, even before I've tried to actually change a file. That never used to happen when we were on WinXP. I've spent several days searching and keep finding the same "solutions" but it never works. Here's what I've tried:
Adding my credentials to the Windows 7 Credentials Manager.
Adding SSUSER and SSPWD environment variables.
Having VSS use my network login name isn't an option.
Anyone got any other suggestions?
Create an AutoHotKey that automatically insert your password whenever VSS ask for it :-)

how to run iisexpress app pool under a different identity

is there a way to run iisexpress app pool under a different identity other than the currently logged in user?
I am getting around this problem using the "runas" command currently but I would like to know if there is something built-in to iisexpress that I can utilize.
It looks like this should be possible. In your IIS Express site's applicationhost.config file, there is a <processModel/> element defined in <applicationPoolDefaults> under <applicationPools>
The <processModel> element has attributes for userName and password.
From MSDN:
Specifies that ASP.NET will run the worker process with a Windows identity that is different from the Windows identity for the default process identity. By default, this attribute is set to the Machine, and the process runs under a user account named ASPNET that is created automatically when ASP.NET is installed. The password for the ASPNET account is cryptographically generated at the time of installation. If valid credentials are presented in this attribute and the password attribute, the process is run with the given account.
This should allow you to run the site under different credentials from the logged in user.
I could not get the above solution to work and I wanted to be able to debug through Visual Studio while running IIS Express under different credentials.
Open the command prompt using "Run as administrator" (you need elevated privileges)
Navigate to the directory of Visual Studio in the command prompt (in my case: "cd C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE" for VS2010).
runas /netonly /user:[domain]\[userid] devenv.exe
Open your solution from VS and complete your TFS credentials (if applicable).
You can now debug as normal under IISExpress (assuming this is how you have your project configured) under the run as credentials. This is great if you need to use integrated security for database connections or something similar but need to use different credentials.
"runas" is only the solution. IIS Express maynot respect processModel settings which are defined in applicationhost.config file.
Runas /netonly IISExpress.exe from command line does work and is very viable if you're as desperate for an answer as we were. Related post
I wonder if this really works - IIS Express seems to run all application pools in the same process - and that process is executed in the context of the current user...?
Seems the "Run as" option could work, but that would require us to launch IIS Express from the command line (or build event) instead of relying on Visual Studio starting it up. :(

Resources