Visual C++ Project System Package - visual-studio-2017

The 'Visual C++ Project System 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 examining the file
'C:\Users\Armyw0w\AppData\Roaming\Microsoft\VisualStudio\15.0_7c22efff\ActivityLog.xml'.
Restarting visual Studio could help resolve this issue.
Continue to show this error message?
that file log: https://pastebin.com/sA9yDiKr
<description>LegacySitePackage failed for package [Visual C++ Project System Package]Source: &apos;Microsoft.VisualStudio.Project.VisualC.VCProjectEngine&apos; Description: No platforms have been found on this installation.
System.Runtime.InteropServices.COMException (0x8005050A): No platforms have been found on this installation.
at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.<ReadInstalledPlatformsAsync>d__264.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.<>c__DisplayClass55_0.<<Initialize>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.ApartmentMarshaler.<>c__DisplayClass7_0.<<Invoke>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.ApartmentMarshaler.Invoke(Func`1 method)
at Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectEngineShim.Initialize(IntPtr instResources, Object sp, Object browser, IVCBuildPackageInternal bldPkg)</description>
somebody know how to fix it?

Your Visual Studio might be missing a "workload" that installs an add-on extension needed for your package.
I was having this same issue and uninstalled and reinstalled Visual Studio and deleted all remnants of Visual Studio before reinstalling. Then when the issue was there again, I dove in to similar questions online like
https://social.msdn.microsoft.com/Forums/vstudio/en-US/d89adaf1-0548-4c8f-b1b9-aee0a1140c91/visual-studio-2017-package-load-problem
. Other people getting this issue on earlier versions of Visual Studio noted that the project type guid tells VS what it needs to load the package. My guid did not match any project type guids online. Then I learned Visual Studio 2017 automatically generates unique guids per project and does not set a published ID anymore like earlier versions.
Then I looked more in this file about Project Type and realized it was building a Win32 application. I scanned the workloads in Visual Studio Installer for a Windows application and downloaded the .NET for Windows app workload. I was still getting the issue after restarting my computer and found that I had to delete the .vs folder for my project for Visual Studio to "reset" itself. I deleted the .vs folder and it finally as able to load my package.

Related

Visual C++ to Visual Studio 2019 - A Dependent DLL was not found

I'm in the process of migrating some legacy MFC applications that were, and are still supported by Visual Studio 2008.
The automated migration that's packaged in with Visual Studio 2019 allows the program and supporting libraries to successfully build; however, at execution this error appeared:
The code execution cannot proceed because MSCVR90D.dll was not found. Reinstalling the program may fix this problem.
After further research, this appears to be a Visual Studio debug DLL. After finding the DLL and dropping it into my debug folder, I receive a brand new error:
Debug Error!
R6034
An application has made an attempt to load the C runtime library without using a manifest.
I've followed the various StackOverflow and MSDN troubleshooting steps that touch on this issue, mostly changing settings within the Linker and Manifest settings, but to no avail.
Anyone have any ideas? Be it with resolving the DLL issue, or the manifest issue that follows its explicit inclusion in the project.

Unable to use QT in Visual Studio 2017

I have installed 'qt-vsaddin-msvc2017-2.3.0' for using QT in Visual Studio 2017, but there are some issues after installation. First thing is that I can not modify QT project Settings in Qt VS Tools since it is grey. After I restart VS, it keeps showing that 'Qt Visual Studio Tools Version 2.3.2: initializing...' and doesn't go on. Is there something I miss when I install qt-vsaddin?
Answering this question a bit late because I ran into this problem myself today. The problem is your VS2017 is not up to date -- You need at least version 15.8; currently 15.9 is released. Odds are your ActivityLog.xml looks similar to Pavel Celba's answer here in which it's having trouble loading a specific version of the Microsoft.VisualStudio.Threading assembly. In order to fix the issue, you're going to have to do one of two things:
Update your Visual Studio Community/Professional/Enterprise to the latest version.
Downgrade your version of the Qt vsaddin to 2.2.2. You can obtain the 2.2.2 release, here. If you need a previous version because your version is even earlier, go to the parent directory of that link.
Once you've installed 2.2.2 or have obtained the Visual Studio 15.9 update, it should be working correctly.
I also had this issue because my VS version is 15.4 but I can't connect to the internet on that computer.
Try installing qt-vsaddin-msvc2017-2.3.2.vsix . If it fails you will probably need to reinstall VS 2017.
We have same problem here - the error shown is:
<entry>
<record>334</record>
<time>2019/02/25 12:48:44.893</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [Vsix]Source: &apos;QtVsTools&apos; Description: Could not load file or assembly &apos;Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly &apos;Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.
File name: &apos;Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;
at QtVsTools.Vsix.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress)
at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass16_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)
at Microsoft.VisualStudio.Services.VsTask.GetResult()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
</description>
<guid>{15021976-647E-4876-9040-2507AFDE45D2}</guid>
<hr>80070002</hr>
<errorinfo></errorinfo>
</entry>
Our Visual Studio version is:
Microsoft Visual Studio Enterprise 2017
Version 15.5.1
We cannot update to newest update due to company policies.
Disconnect form internet and install Qt vsaddin 2.2.2 then run VS2017 go to Tools>Extensions and Updates> select "Qt Visual Studio Tools" > and then uncheck "Automatically update this extension".

How to trace an unhandled exception in C++ using Visual Studio 2017

I am currently working on fixing a project for a client. A little information about the project first:
Originally developed in Visual Studio 2012 using xp_v110 build tools
Multiple projects in the solution
Currently updating/debugging in Visual Studio 2017 using VS 2015/xp_v140 build tools
Working on Windows 10
The application will run in debug mode, however if I just leave the application after starting the debug session (i.e. not opening/clicking on the application to open it as it starts minimized in the tray), the application crashes after 1-2 minutes.
Unfortunately the IDE is showing that the crash is taking place in chkstk.asm with the following message:
Exception thrown at 0x0064EDF9 in <<exe name>>: 0xC00000FD: Stack overflow (parameters 0x00000000, 0x000A2000).
I have updated the exception settings to break when all C++ Exceptions are thrown, checked the box that says "Break when this exception type is thrown", and wrapped the initial method that runs in a try block, however I can never catch the error in the C++ code; it always occurs in the chkstk.asm file.
Any suggestions on how I can find out where in the C++ code the exception is occurring. Like I said, this is an update for a client and the original programmer is not available, and they never commented their code, so it is difficult enough trying to go through all this. Any help/suggestions would be greatly appreciated. Thanks in advance.

ImageWatch in Visual Studio 2013 : exception has been thrown by the target of an invocation

I currently work with OpenCV C++ in Visual Studion 2013 (Community). I have installed the plugin ImageWatch into Visual Studio, which is useful debugging aid.
After a recent upgrade of Windows 10 (I was already was working with Win 10 and it was fine), I started to receive the following error : "exception has been thrown by the target of an invocation" when opening ImageWatch from 'View/Other Windows/Image Watch'
I have tried un-/re-installing ImageWatch and updated VS 2013 to the latest .Net Version (5.0) for 2013. I also, as suggested on other posts, where the same error has been generated for different reasons, shortened the length/removed some of the lengthy less used System Environmental Variables. All to no avail.
Part of the symptoms I received from Win 10 update were some missing .dll messages for MSVCP110.dll and MSVCR110.dll, generated directly after start up (of my PC). A quick search indicated that I was missing some crucial Visual C++ Redistributable x64 and x86 updates for Visual Studio 2012. (see http://answers.microsoft.com/en-us/windows/forum/windows_8-winapps/the-program-cant-start-because-msvcr110dll-is/f052d325-3af9-4ae5-990b-b080799724db)
These can be download here:
https://www.microsoft.com/en-us/download/details.aspx?id=30679#
After installing these updates for x64 and x86 and a reboot, the dll messages disappeared at start. Following a reinstallation of ImageWatch plugin, I no logner recieved the "exception has been thrown by the target of an invocation" and Image Watch was opening and running fine.

Assembly loading failure when using the CLI library

For some reason I can not launch my 64-bit application. I receive an error:
14:17:41:587 Error: The type initializer for 'Va.MBClient.Program' threw an
exception.
Unhandled Exception: System.TypeInitializationException: The type initializer fo
r 'Va.MBClient.Program' threw an exception. ---> System.IO.FileNotFoundExce
ption: Could not load file or assembly 'CGateCliAdapter.dll' or one of its depen
dencies. The specified module could not be found.
at Va.MBClient.Program..cctor()
--- End of inner exception stack trace ---
at Va.MBClient.Program.Main(String[] args) in c:\Oleg\projects\Va.M
BClient\Va.MBClient\Program.cs:line 87
Somehow this is connected with my CLI DLL file, because when I outcomment the line private static CGateCliAdapterMain cliAdapter = new CGateCliAdapterMain();, which refer to the CLI library, I can launch the application.
I do see this in Visual Studio:
Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state)
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart()
[Native to Managed Transition]
I've tried to use fuslogvw to catch a binding failure, but it can't catch it for some reason! So now I don't know how to troubleshoot the problem.
I've used Dependency Walker and have found that the following files are missing:
MSVCR110.DLL
GPSVC.DLL
IESHIMS.DLL
MF.DLL
MFPLAT.DLL
MFREADWRITE.DLL
WLANAPI.DLL
I've tried to copy wlanapi.dll directly to a folder with the application and that helped (the DLL file disappeared from the missing list), but why are DLL files not visible when I've installed Visual C++ Redistributable for Visual Studio 2012? I've tried to reinstall and repair the installation.
Also, I can't find the DLL files MSVCR110.DLL and MSVCP110.DLL.
I don't know why. I've tried to reinstall Visual C++ Redistributable for Visual Studio 2012 many times.
Update:
Now again I can not run my program for some reason! After one day, Dependency Walker again claims that DLL files are missing. However, I do have "Visual C++ Redistributable for Visual Studio 2012".
I found a solution. Visual C++ Redistributable for Visual Studio 2012 needs to be installed.