Package management initialization failed. When launching Visual Studio 2017 (15.7.2) - visual-studio

After installing VS2017 Community ver. 15.7.2 on Win 7 64-bit, following error was found when launching VS2017 with or without admin privilage:
Package management initialization failed.
You can get more information by examining the file:
C:\Users\NAME\Appdata\Roaming\Microsoft\VisualStudio\15.0_5024a39e\ActivityLog.xml
These are the errors found in ActivityLog.xml file:
Infos: Could not find ConfigurationChanged timestamp.
Error: merging configuration file C:\Users\\AppData\Local\Microsoft\VisualStudio\15.0_5024a39e\devenv.exe.config
Error: merging configuration file
C:\Users\NAME\AppData\Local\Temp\dev6FC4.tmp
Error: merging configuration file
C:\Users\NAME\AppData\Local\Temp\dev6FC5.tmp
Error: merging configuration file
C:\Users\NAME\AppData\Local\Temp\dev6FC6.tmp
Error: Configuration file merge failed.
Error: Failure calling FinishInitialize.
Tried to install VS2017 Enterprise as well as the VS2017 Community 15.6.7 and got the same errors.
There is a similar problem answered here but it doesn't work for me.
Any input is appreciated

I had the same problem, i solve that doing this
Uninstall Visual Studio 2017 and other Visual Studios
Delete C:\ProgramData\Microsoft\VisualStudio
Uninstall any Visual C++
Look for any Visual Studio Key on the Regedit and delete
Delete C:\Users\UserName\Documents\Visual Studio 2017 (Backup your projects)
Delete C:\Users\UserName\AppData\Local\Microsoft\Visual Studio\15.##
Update your Windows and restart your pc
Install Visual Studio 2017 again
Try to open, and one error apears
Copy the devenv.exe.config file locate in the root of the IdE to
C:\Users\UserName\AppData\Local\Microsoft\Visual Studio\15.##
Try to open again
Try to open in safe mode
Try devenv.exe /resetSettings
Try to repair Visual Studio Again
For me works :) !

Related

After windows update to 1909, getting this error while building my solution in VS Studio 2019

After windows update to 1909, getting this error while building my solution in VS Studio 2019
Error Details
Could not run the "GenerateResource" task because MSBuild could not
create or connect to a task host with runtime "CLR4" and architecture
"x64". Please ensure that (1) the requested runtime and/or
architecture are available on the machine, and (2) that the required
executable "C:\Program Files (x86)\Microsoft Visual
Studio\2019\Professional\MSBuild\Current\Bin\amd64\MSBuild.exe" exists
and can be run.
Windows version: 1909
Upgraded from 1803
Visual Studio version: Visual Studio Professional 2019 version 16.7.5
Please let me know anyone encountered this issue earlier, any help will be appreciated.
Try to add these node in xxx.csproj file:
<PropertyGroup>
<GenerateResourceMSBuildArchitecture>CurrentArchitecture</GenerateResourceMSBuildArchitecture>
<GenerateResourceMSBuildRuntime>CurrentRuntime</GenerateResourceMSBuildRuntime>
</PropertyGroup>
More steps about this issue, you can refer to this similar issue.
To be more specific, set an system environment variable DisableOutOfProcTaskHost to true.
Or DISABLEOUTOFPROCTASKHOST to 1.
as I said in here
I had the same Error (in version 16.9.3) but By Repairing Visual Studio 2019, Updating last version of windows 10, close VS, delete .vs hidden folder (under solution folder) ,bin and obj folder then restart your VS . Fortunately My problem was solved.

microsoft.service.hub error after installing Visual Studio Community edition

After re-installing Visual Studio Community edition I've been getting this error.
I get the error right after the splashscreen shows
Could not load file or assembly 'Microsoft.ServiceHub.Client'
Please open File Explorer and search this file name to verify this file is existing on your computer or not.
Meanwhile, you can have a try with the following to troubleshoot this issue:
Clear all folders and files under the folder: %LocalAppData%\Microsoft\VisualStudio\15.0_xxx\ and restart the VS 2017 to check it again.
Open cmd and navigate to the VS 2017 installation folder like C:\Program Files(x86)\Microsoft Visual Studio\2017\xxx\Common7\IDE and run the command: devenv /safemode to run it as safe mode, then check if the installed extensions caused this issue.
Re-run the VS 2017 installer as administrator and choose Repair to repair it

After installed Visual Studio 2010 Professional I am getting an error

I have installed VS 2010 Ultimate on Windows 7 Enterprise. It is not working. So I uninstalled that and re-install VS 2010 Professional.
But I am getting an error whenever I open Visual Studio 2010.
Error:
The 'Visual Studio Tools for Applications v3.0 Shell Integration Package' package did not load correctly.
The Problem may have been caused by a configuration change or by the installation of another extension. You can get more information by running the application together with the log parameter on the command line, and then examining the file
'C:\users\Name\AppData\Roaming\Microsoft\VisualStudio\10.0\ActivityLog.xml'.
How to fix this issue? Please help me.
I ran Procmon from Sysinternals on devenv.exe with a filter set to capture file system events only, and only not equal 'success' results.
This brought up some results pointing at a directory where devenv.exe attempted to load Microsoft.VisualStudio.Tools.Applications.Package.dll from. None of those directories contained that file.
Searched for that file and found it under C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.Tools.Applications.Package.dll That location was not among the directories captured by Procmon.
Copied the file to the first location indicated by the error captured by Procmon and voila, problem solved.

visual studio cannot open new project

Whenever I try to create a new project in VS 2010 I get the error:
New project/item dialog could not be initialized due to error:
Exception of type 'Microsoft.VisualStudio.Dialogs.DialogInitializationException' was thrown.
And when try to open existing project visual studio 2010 restarts.
I had the same problem on my computer. After a long time searching I solved it by the following steps:
Close all instances of Visual Studio
Go to "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE" (or whatever is your VS installation directory)
Run command devenv.exe /resetuserdata and wait until finished
Run Visual Studio
I can't find the former case. As you met an exception
Microsoft.VisualStudio.Dialogs.DialogInitializationException
I am suggesting you try the way below:
Run devenv /resetuserdata.
Delete the file:
%LOCALAPPDATA%\Microsoft\VisualStudio\11.0\ComponentModelCache
and restart Visual Studio.
Close all VS instances and try the solution mentioned here:
Launch Developer Command Prompt for VS 2017 as Administrator
Go to VS 2017 installation folder, for example: pushd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise
gacutil -if Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.Shell.Interop.8.0.dll
Open your control panel
Change
Regional -> Formats tab -> Format: English(United States)
https://connect.microsoft.com/VisualStudio/feedback/details/727578/vs-do-not-work-with-finnish-number-format-on-w8-64-bit
It works for me :)
This problem can cause when you install an older version of Visual Studio nearby the current version. For example VS 2017 is installed on your system and you do force install of VS 2008.
I faced this problem many years ago by installing VS 2008 after VS 2010;
and today again I had this problem. Because I installed SolidWorks 2015 after VS 2017. SolidWorks had a Visual Studio 2008 inside its package that interferes my installation.
Just uninstalled VS 2008 and I'm done.
I found this to still be an issue in Visual Studio Community 2017, Microsoft released a work around that fixed my problem:
The work-around for this issue would be:
-Launch “Developer Command Prompt for VS 2017” as Administrator
-Go to VS 2017 installation folder, for example: pushd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise
-gacutil -if Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.Shell.Interop.8.0.dll

InstallShield and VS2010

I installed InstallShield 2012 Premier and try to create Basic MSI project in VS2010 (Premium). But I cannot create project since I get the error:
The 'InstallShield 2012 Package' package did not load correctly.
The problem may have been caused by a configuration change or by the installation of another >extension. You can get more information by running the application together with the /log parameter >on the command line, and then examining the file 'C:\Users\Administrator\AppData\Roaming\Microsoft
\VisualStudio\10.0\ActivityLog.xml'.
If I follow the instruction in ActivityLog.xml I see the next error:
LoadLibrary failed for package [InstallShield 2012 Package]
C:\Program Files (x86)\InstallShield\2012\System\IsDevPkg.dll
I've tried devenv.exe /resetskippkgs and reinstallation of Visual Studio and InstallShield, but it was not helpful.
Perhaps I don't have some pererequisites installed?
Thanks,
Elena
Update: installation InstallShield 2012 Spring solved the problem. It seems like in newer version IS this bag has been fixed.

Resources