Vs2015 After Closed the Solution Restart Again
Visual Studio Community 2015 is the costless edition of Visual Studio, and so I decided to install it on my computer. Setup contains lots of components, then installation running considerable amount of time was expected, but later on 3 hours, it was but 30% finished. Another 60 minutes later, the setup was still trying to install the same package. It seemed that the installation got stuck. In this post I volition share how I tried to solve the trouble and what somewhen worked.
Warning: This article was written for Visual Studio 2015. With Visual Studio 2017 and newer, the installation procedure is different, so solutions mentioned here will probably not work.
.
The problem I had was deciding what to practice next. There were many options to choose from. I could:
- Try to run install again
- Go to Programs and Features > Visual Studio Community > Modify > Repair
- Go to Programs and Features > Visual Studio Community > Modify > Uninstall
- Restore the organization using System Restore that was created before the installation began and and then try again
- Restart the computer and endeavor again
Before I could brand a conclusion what to do, I had to cancel the setup, but even that got stuck.
I had to go to Task Manager to end the installation by stopping vs_community.exe
process.
Showtime, I tried to go with a 2nd selection where I chose the Repair option. That didn't do much. Running information technology as Administrator also didn't do the trick. I was getting the message:
Another Installation is in progress. Delight wait to retry over again
I tried Third option using Uninstall just it gave me the aforementioned message.
Side by side I decided to restart the estimator and endeavor again. After restart, the Windows did load without whatever issues except that the Visual Studio Customs Installation setup automatically opened, giving me the option of Uninstall or Repair. I chose Repair.
Finally, the installation completed with no issues at all. Finally, bug with Visual Studio has been solved…or and so I thought.
Strange Errors in Visual Studio
Visual Studio seemed to work just fine, but when I wanted to create ASP.Internet iv.5.2 Webforms projection, I got this foreign error:
No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)
I tried to create a blank solution which worked without errors, merely when I wanted to add a new project to the solution, I received a different error:
Error "Project <Name> could non be opened because the Visaul C# 2015 compiler could non be created. Please re-install Visual Studio
If I looked into the solution using Windows Explorer, I noticed the files were created for the project, so I tried to add together an existing project to the solution, only that didn't help either. I again received the above "Visual C# 2015 compiler could not be created" error.
Looking on the web, I noticed those errors are not rare and at that place were plenty of suggestions, on how to fix them. The nigh frequent suggestions were:
- Running Visual Studio from control prompt with
devenv.exe /resetsettings
- Delete Visual Studio folder in
user/appdata/microsoft/visualstudio/vs version
- Modify some registry
Unfortunately nothing of the above worked for me.
What did work
What finally worked was uninstalling the Visual studio, restarting the computer and install it again.
This time the installation succeeded and VS Community is still working with no problems.
So to epitomize. After stuck setup, restart the computer, then in Visual Studio Setup choose Uninstall instead of Repair, restart computer again (just to be on the safe side), run VS setup once more and hope for the best. Merely there is some other way to try to install Visual Studio, which is discussed adjacent.
Another Solution that worked - download ISO and install information technology offline
Commentator Abbas Banu Vohra mentioned another solution that involves installing Visual Studio using command prompt. Basically what we do is first download ISO version of the Visual Studio Community, excerpt it so instead of installing, we use setup to first download the files directly to hard drive by using command line arguments. I recently had to reinstall Visual Studio and again got stuck during install, and then I tried this solution and information technology worked flawlessly, only be aware that ISO is 7GB of size, and the downloaded setup files volition be around 22GB.
Steps are as follows:
- Get the ISO version of the Community Edition. You lot should discover it Here under "Visual Studio Downloads" section. Select Community 2015 and choose ISO format every bit shown below:
Click image to overstate
- After saving the 7GB big ISO file
vs2015.3.com_enu.iso
, extract it with archive utility like WinRar or seven-zippo. - In the extracted files, there should be
vs_community.exe
file. We will run this file in control prompt. Easiest way to do this is to go to the binder wherevs_community.exe
is located with Windows Explorer and then but blazon CMD inside Accost bar. This will open CMD on that folder. - Nosotros will use /layout Directory parameter of
vs_community.exe
file. This will copy installation files to the folder you lot specified in Directory. - In one case in CMD console, type
vs_community /layout yourdirectory
(for case, vs_community /layout c:\vs2015 ) - If yous don't take fast internet connection, you could attempt using
/noweb
argument in add-on to/Layout
. This should prevent downloading 15GB of the "Optional items" from the net. Notation that past using/noweb
statement, optional items needed for installation during setup will be downloaded / acquired from the web, which might crusade the original problem of being stuck. - Setup window will show up every bit shown below:
Click image to enlarge
- Afterwards clicking on Download button, It will first to download / larn all the setup files to that specified binder.
- Note that most of the download will cease rather quickly since they are located in extracted ISO file only acquiring the Optional Items at the end of the progress bar (around 15GB) tin have some time every bit they volition be downloaded from the cyberspace. Using
/NoWeb
statement will prevent that as mentioned in step 6. - Afterward all items are downloaded, click on Consummate button.
- Now go to the binder of the downloaded files (binder that you lot specified in
/layout
statement) and runvs_community.exe
. At present, the setup volition install offline by using the downloaded media in your difficult drive.
Note: List of all command-line parameters for installing Visual Studio can be found HERE.
Diagnostics Tips
Here are some additional tips, that might help yous diagnose the problem with the installation.
How to make up one's mind if the installation is stuck or not
If you are unsure if setup is just stuck or the component takes a while to install, check the processes in Task Managing director. The number of processes volition go along to alter. Some of the processes that will come and go during installation:
|
|
So if you think the installation is stuck, monitoring processes in Chore Manager might assistance you determine if that is indeed the case.
Checking the installation log files
Another way to analyze the setup is to bank check out the installation logs. In Windows 7, these files are located at %userprofile%\appdata\local\temp
.
Each component has its own installation log file. All filenames start with dd_vs_community_
.
Determination
Visual Studio setup needs to install a lot of components, so information technology may take a while to stop but sometimes the setup tin go stuck. First, we demand to make up one's mind if the installation is really stuck. If it is, we can try different things to solve the problem. We tin simply endeavour Restart and Uninstall or nosotros could download ISO and install it offline.
If you found this post useful, consider sharing it on social networks. If you solved this issue in any other mode, drop a comment and permit usa know.
Source: https://www.howtosolutions.net/2015/08/solving-installation-is-stuck-problem-in-visual-studio-community-edition/