Solved

Visual Studio - multiple versions installed

Posted on 2016-08-15
7
29 Views
Last Modified: 2016-10-27
Hi

I have a user that has multiple versions of Visual Studio installed and after a few days,
when he has about 3-4 instances of Visual Studio 2015 open, he cant open another one.

This seems to have started after SQL server tools for VS2015 was installed.
he does get an error window about loading the VS menu and to

run   devenv.exe /resetsettings , which doesn't fix the problem.

NOT VERY FAMILIAR WITH VISUAL STUDIO AT ALL...

he does seem to have a very long path, he think each instance of VS adds another dnx path into the PATH

PATH=C:\oracle32\product\11.2.0\client_1;
C:\oracle32\product\11.2.0\client_l \bin;
C:\oracle64\product\ 11.2.0\client_l \bin;
C:\Windows\system32;
C:\Windows;
C:\Windows\System32\Wbem;
C:\Windows\System32\ WindowsPowerShell\v 1.0\;
C:\Program Files (x86)\Enterprise Vault\EVClient\x64\;
C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\vSShell\Common7\IDE\;
C:\Program Files (x86)\Microsoft SQL Server\] OO\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;
C:\ProgramFiles (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;
C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;
C:\Program Files (x86)\Microsoft Team Foundation Server 2015 Power Tools\;
C:\Program Files (x86)\Microsoft Team Foundation Server 2010 Power Tools\Best Practices Analyzer\;
C:\Program Files (x86)\Microsoft SQL Server\80\TooIs\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;
C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\90\Tools\BinnWSShell\Common7\IDE\;
C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\vl.O\;
c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;
C:\Program Files (x86)\CDC Software\PivotaIClient\PivotaIClient.PerMachine\exe\bin\Standard;
C:\Program Files\Microsoft SQL Servervl IOvl'ools'Binnv;
C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;
C:\Program Files\Microsoft\Web Platform Installer\;
C:\Program Files (x86)\Microsoft SQL Server\11O\Tools\Binn\ManagementStudio\;
C:\Program Files (x86)\Microsoft SQL Server\11O\Tools\Binn\;
C:\Program Files (x86)\Microsoft Visual Studio 1O.O\Common7\IDE\PrivateAssemblies\;
C:\Program Files (x86)\Microsoft SQL Server\11 O\DTS\Binn\;
C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;
C:\Program Files (x86)\Windows Kits\8.1 \Windows Performance Toolkit\;
C:\Windows\System3 2\ WindowsPowerShell\v 1. 0\;
C:\Program Files\nodejs\;
C:\Program Files\Git\cmd;
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\;
C:\Users\USER\.dnx\runtimes\dnx-c1r-win-x86.1. O.O-rc l-update2\bin;
C:\Users\USER\.dnx\bin
0
Comment
Question by:GST-GRIDTECH
  • 4
  • 3
7 Comments
 
LVL 33

Expert Comment

by:sarabande
ID: 41757626
the path variable (defined via system settings-system.advanced-environment variables) may not contain visual studio paths if there are multiple visual studio versions active.

each studio has it own path settings which are not dependent on the path environment variable.

if (some of) your programs/projects are dependent on the path environment variable pointing to the visual studio folders, you should start the visual studio version via batch file and enhance the path variable in the the batch file before calling devenv.exe. such doing would not enhance the general path variable but only locally for the started visual studio instance. all programs started from this vs version would inherit the path variable and other locally defined environment variables.

Sara
0
 

Author Comment

by:GST-GRIDTECH
ID: 41757649
Hi Sara,

Thank you for your comment.

Not being very familiar at all with Visual Studio,
so if the Path has  nothing to do with the issue,
then what can we do about VS not starting after 3-4 instances of VS being opened?

what could be the cause?
What are the possible fixes?
why would he get the error window suggesting to run   devenv.exe /resetsettings,  but it doesn't fix the problem.?

Thank you.. any information is greatly appreciated as I am totally unfamiliar with VS.
0
 
LVL 33

Accepted Solution

by:
sarabande earned 500 total points (awarded by participants)
ID: 41758220
you need to 'clean' the Path Environment variable defined in the System Settings from all visual studio paths, sqlserver paths, tfs paths (note you have two tabs for user and system where in both a Path could be defined. both would build the valid environment variable).

the problem is that the Path was parsed from begin to end for a dll or exe and that there are files with same name in the vs folders. hence, it could happen that a dll or exe with wrong version was used when executing programs. another issue occurred if the path exceeds a defined maximum (i think it is 1024 characters what surely is violated by the path you posted). then the path cannot expanded by dynamic folders what also could cause the issue you encountered.

note, if you don't need to use the different vs versions same time you could use a mapped drive letter to activate the right version in path:

- define the folders of visual studio and SQL Server in the path environment variable in the System Settings like

x:\Common7\IDE\PrivateAssemblies\;
y:\100\DTS\Binn\;
...

and have each subfolder only once.

then use a batch file for each version you want to make current and add

...
if exist x:\ subst x: /D
subst x: C:\ProgramFiles (x86)\Microsoft Visual Studio 9.0
if exist y:\ subst y: /D 
subst y: C:\Program Files (x86)\Microsoft SQL Server\
...

Open in new window


if you execute the batch, the drives x, y were mapped to the folders of the wished version and path was correctly defined. however, it is not possible to run different versions same time since the drive mapping is a global definition.

Sara
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:GST-GRIDTECH
ID: 41765088
Hi, very sorry for my absence.
im stillworking on this and in need of a solution.
just called away on a web development issue.

i will be picking this up again today and tomorrow.

thank you
0
 

Author Comment

by:GST-GRIDTECH
ID: 41768515
Hi,
the info I was able to get from the user is the issue of opening up multiple instances of Visual Studio started happening soon after having SQL Server Tools for Visual Studio 2012 a week prior which also seemed to have given him issues with certain icons. but the icon issues were resolved.

since he primarily uses Visual Studio 2015, it is with VS2015, that he has the issue of opening up multiple instances, then he would get the error message and then would have to close and restart everything.
0
 
LVL 33

Expert Comment

by:sarabande
ID: 41768582
actually, if the user is not willing to solve the path issue where the path is pointing to multiple folders having dll's with same name but where not necessarily the first of these folders is the right one, they will not get a stable system.

Sara
0
 
LVL 33

Expert Comment

by:sarabande
ID: 41793890
The user tries to use multiple versions of Visual Studio same time. This can only work if the PATH environment variables, both of Windows and Visual Studio are well-defined and are not pointing to folders of a different VS version.

Sara
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
We have come a long way with backup and data protection — from backing up to floppies, external drives, CDs, Blu-ray, flash drives, SSD drives, and now to the cloud.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now