Visual Studio Installer - The system cannot find the file specified - visual-studio

Whenever I try to launch the Visual Studio 2015 installer, I immediately get the following error message:
I've tried redownloading the installer, but for the life of me I can't seem to get it to install. Would anybody know how to fix this?

My first suggestion would be to try and create a new user, download the installer again and see if it works;
As mentioned in the comments, Process Monitor may help diagnose your problem;
Your antivirus may consider the installer a false positive, so you may want to temporary disable it before you download the installer again;
Make sure your installer is the real one. Here is the link for the Community version;
There is also the possibility that the disk is failing. Try running chkdsk on your drive.
EDIT:
The problem seemed to be about the web installer, try grabbing the vs2015.com_enu.iso file available here.

In my case, it was that the user temp directory was inacessible due to a disk issue (my temp dir was on a small dedicated SSD disk).
Without access to temp dir, VS crashes on startup and installers won't run.
I had to change my temp dir (from environment variables) and VS started again.

Related

Manually download missing package for visual studio

When installing visual studio if we already have deleted content of C:\ProgramData\Package Cache directory then whole setup process will be turned into a real nightmare constantly complaining about missing packages. I've searched the web for a solution and the only working one I've found is a tool called install and uninstall troubleshooter.but the problem with it is i have to interrupt setup process and use this tool to remove the package and then get back to setup again which is really cumbersome job to do.
But the good thing is for every package that visual studio fails to uninstall it logs a GUID like this {A2999714-5C2C-3729-A911-4AE198B7B2FD} in the log file.Now better and ideal solution in my mind is looking after an official website from which i be able to download each of these packages by these GUIDEs.Is there such a location in the web? or is there any better solution to solve the issue?
Why did you delete the Package Cache? Do you have little disk space? The Visual Studio installer is so complex that you are fighting windmills trying to fix this I think. Perhaps they have an uninstall tool of some kind that will clean the slate.
Is this Visual Studio 2017? If so, maybe try these links:
Remove Visual Studio
Cleaning up corrupt Visual Studio instances
I doubt it will work since you have deleted the package cache. Note that most MSI-based installers should be able to uninstall without the package cache due to the cached MSI file in the super hidden folder %SystemRoot%\Installer.
Whatever you do do not delete anything from %SystemRoot%\Installer. Then you are in a totally unrecoverable state since this is an internal Windows Installer implementation detail. Do not mess around in here unless you know exactly what you are doing.
The files in %SystemRoot%\Installer are used to uninstall from the Add / Remove Programs Applet.
Further Links:
Visual Studio 2017 Broken and Cannot Uninstall or Repair
have deleted content of C:\ProgramData\Package Cache directory then whole setup process will be turned into a real nightmare constantly complaining about missing packages
Had the same issue, but with vcredist files, couldn't install any drivers without running into errors and eventually couldn't install because install failed.
I found the solution elsewhere. It said to
Fix problems that block programs from being installed or removed
https://support.microsoft.com/en-us/help/17588/windows-fix-problems-that-block-programs-being-installed-or-removed
download troubleshooter button on the link.
Run it - choose option - have problem with installing - it lists programs - choose the missing / problematic visual c++ runtimes in the list
it will run and get fixed.
Repeat for each visual c++ you having problems with. I ran the program multiple times.

Visual Studio 2015 Update 3 installation failed

I have a problem with installation Visual Studio Professional 2015 Update 3. I don't know what cause the problem, but setup is failed every time in each setup configuration. Setup manager shows me following error and warning:
Microsoft Visual Studio Services Hub
The system cannot open the device or file specified
I really don't know how to solve this problem. Does anyone know what is wrong and how can I install this program?
Greetings
SOLUTION
I know what was the problem! I didn't check thoroughly the default location where Visual Studio wants to install. On my PC I have installed a 64-bit Windows 7. After many tries of installation I saw that installator chose wrong Program Files folder. It tries to install Visual Studio in Program Files (x86) (dedicated for 32-bit programs). I really don't know why VS installator chose a default folder for a 32-bit programs while my VS is a 64-bit version and also Windows is a 64-bit version.
I hope that this solution will help someone who has the same problem.
Most likely this is because of Windows Installer cannot access the %TEMP% folder (I had similar error once, but with MSSQL setup). So:
First of all check if you %TEMP% environment variable points to the
right location
Then check if the account which is running VS setup has privileges to
access TEMP folder. Better yet, make sure you run setup as
administrator
Finally make sure you have disabled all disk or folder encryption
features
Also just to be sure disable any antivirus software you have running
The error message “The system cannot open the device or file specified” often related to the specific folder is encrypted, you can have a look at this article and try the following methods:
Save the VS installer file to a folder that is not encrypted
Install the VS to a folder that is not encrypted
Turn off encryption on the %temp% folder
To check the encryption of the specific folder, you can right click the folder and select ‘Properties’— ‘General’ tab, click ‘Advanced’ button and confirm the checkbox of ‘Encrypt contents to secure data’ is checked or not.
You can click the ‘log file’ in the VS installer screen that you shared, and find the specific folders that these 2 components ‘Microsoft Visual Studio Services Hub’ and ‘Visual C++ IDE Common Package’ stores and check if those folders are encrypted or not.

How to Resume offline installer creation of Visual Studio 2015 community without redownloading over 12gigs again?

I download the 7GB+ iso for Visual Studio 2015 with Update3 included. I then started to create the offline installer for the dev. machine using vs_community.exe /layout
It finished (said it was done complete and there was over 12GB that it downloaded) but it said it couldn't download the last thing, windows sdk or something like that, maybe I had missed to say yes to a recent firewall pop-up. Anyway so I said ok and then re-ran the vs_communinty.exe /layout
But it keeps giving Setup Engine access is denied error unless I give it a new empty download directory. If I point it to the previous folder, it fails with Setup Engine Access denied, the logs show error 0x80070005
Anyone know how to make the installer to RESUME so one doesn't have to redownload the full 12.5GB again just for the last 500MB still needed?
Also I'm curious if the 7GB+ on the ISO downloaded will be used at all in the install or not, seems strange to download a 7GB+ iso to just throw it away after then running vs_community.exe /layout which re-downloads everything to some directory for an offline install. When I downloaded the 7GB+ iso, I figured everything needed for an 'offline install' was already inside of it compressed, but obviously that's not so.

Cannot compile solution in VS due "Attempted to access an unloaded AppDomain" -- how to pin it down?

I have a C#/ASP.Net solution in VS (2008) with several projects within it. When I try to compile it I get one error only:
Attempted to access an unloaded AppDomain
No line code, no project name, nothing. Just such error.
How can I pin down this error -- i.e. the cause, or even better -- how can I solve it and continue compilation?
Thank you in advance.
Shut down Visual Studio and reopen it. Then clean the Temp folder.
For that press Windows+R and type %Temp% and click Ok, then delete everything.
If this error comes with VS follow these steps
Just restart your VS.
Start VS again
Clean the solution (Build> Clean Solution)
Rebuild your project again
If this error comes with IIS
Restart (recycle) the IIS Application Pools in IIS Manager, After restarting check run the solution again!
There are many possibilities:
Try resetting your Visual Studio's
Setting.
Or check all dlls which are
referenced.
Check all the namespaces which are
being used in your application, Do
they exist?
I am experiencing the same in Visual Studio 2012 - but ONLY on websites hosted on UNC share. My solution (when it occur) is to unload the web project and reload it again. Then in works for some time again.
The problem as I recall it is, that the hosted UNC share (or the workstation trying to access it) is running an x86 version of Windows, which does not allow to many open network connections.
In my experience these sort of problems disappear on true x64 environments.
Cheers.
it means, there is something in WebConfig/AppConfig not compatible and cannot load.
For ex.
İf you published project, check app_data/publish profiles, delete them.
Check your .sln file first if it is conflicted then delete it and update your svn folder and rebuild your solution.
Rebuild your solution
It's also possible that your unit test started up a thread but didn't close it. Ensure your threads are all closed before completion.
It might be a good idea to verify all your unit tests are running and passing correctly.
Exit the local webserver(IIS express) from the system tray and delete asp.net temp files from temporary folder & then try clean,rebuild and run your application
Following are the steps i followed to get rid of such error-
Press Windows+R , write %Temp% and hit enter. Now,delete all the temporary files from the directory.
Restart your visual studio.
Clean your project solution from Solution explorer in Visual studio List item.
Rebuild the project & Run .
It should work expected.

visual studio: unable to delete folder this function is not supported on this system

Appparantly I'm the only one on the Internet experiencing this problem because I can find ZERO other reports of anyone else encountering it. Unfortunately I've been dealing with it for months and I don't know what else to do.
sometimes when I attempt to delete a folder from visual studio 2010, I get the error
unable to delete folder 'XXXX' this function is not supported on this
system
I can't delete it from the file system either unless I reboot the machine. Apparently there is a lock on it somewhere, but I can't find it. I tried to use Unlocker, but that doesn't work on Windows 7 x64 so I'm stuck.
This happens most often with the App_Theme folder, though it happens with other folders as well.
I would suspect it has something to do with source control (we are using sourcegear fortress), however I've encountered this error at home on my personal projects, and I don't use source control on that...
so does anyone have any ideas? has anyone out there experienced this issue? please help, it's driving me quickly and certainly towards insanity.
same thing to me here, what i am doing to fix that is to delete that file or folder from the file system and after that delete it from visual studio.
This is happened to me because previously I opened file in browser to see what is the content. Probably IIS locked files under this folder so it does not let you delete them.
Do iisreset and try again, it will release lock and you can delete it from visual studio.
You are probably trying to delete a file in a folder for which you don't have permission. Try to move your files to another folder or run Visual Studio as administrator.
This may happen if you do not have folder permissions within windows itself. Give the user folder permissions (full control) for the folder containing the solution and make sure those permissions are inherited by children of the folder. Once that is done (in the case of one of our employees) folders can be deleted from within visual studio.

Resources