VSShellStub2.exe - System Error - visual-studio

What are the prerequisites to be installed in a Target machine for running the application developed using Microsoft Visual studio Isolated Shell 2013.
In a fresh Win7 SP1 64bit machine, I have installed Microsoft Visual studio Isolated Shell 2013 Redistributable package.
But i got an error when starting the application
VSShellStub2.exe - System Error
The program can't start because MSVCR120D.dll is missing from your computer. Try reinstalling the
program to fix this problem.
Do i need to install any other application to make it work?

Finally i found out the issue,
Visual studio Isolated Shell Redistributable package is not including debug version for c(Msvcr120d.dll) and C++(Msvcp120d.dll ) run time. So application should be build in release mode to make it working in a fresh system with VS Isolated Shell Redistributable package
https://msdn.microsoft.com/en-us/library/windows/hardware/dn448963(v=vs.85).aspx

Related

mfc120d.dll is missing after opening my project exe

I have a MFC vc++ project and I have exe file for this project using Visual Studio 2013. When I open the project exe it is working fine on my development machine.
But when I open this exe in my customer's machine, I'm getting this error message:
The program can't start because mfc120d.dll is missing from your computer. Try reinstalling the program to fix this problem
I noticed that my project exe file is working if the system has Visual Studio installed. I also installed "Visual C++ Redistributable Packages for Visual Studio 2013", but even then I'm getting same error. Please suggest a solution.
This is because you deployed a debug version of your app. If this was intentional (to be able to debug remotely? ) you can find and deploy the mfc120d.dll from your VS2013 installation directory.
Otherwise just build the Release configuration and you should be fine.

Visual Studio 2017 does not detect Windows Driver Kit installation

I already have Visual Studio 2017 professional with Desktop Development with C++ installed.
I am trying to build the Virtual Serial project found here:
https://github.com/Microsoft/Windows-driver-samples/tree/master/serial/VirtualSerial
When I try to build it, I get the error:
Severity Code Description Project File Line Suppression State
Error MSB8020 The build tools for WindowsUserModeDriver10.0 (Platform Toolset = 'WindowsUserModeDriver10.0') cannot be found. To build using the WindowsUserModeDriver10.0 build tools, please install WindowsUserModeDriver10.0 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". virtualserial C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets
I cannot find any instructions on installation aside from this website.
https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk
I downloaded the WDK for Windows 10, version 1803.
I closed VS2017 and ran the installer.
When running the installer I got the message in the screenshot below, I clicked Next to continue installing
After running the installer, the project still does not build, with the same error: WindowsUserModeDriver10.0 is not installed.
What am I missing during installation? Is this the correct installer for regular VS2017 (not community edition)?
Thanks,
I know this is old, but I recently fell into this rabbit hole. What worked for me was uninstalling all of the WDKs, rebooting, and installing WDK 1803 (the wdksetup.exe program downloaded from Other WDK downloads shows version 10.0.17134.1 in properties). That WDK installer specifically calls out VS 2017 when you add the Visual Studio integration at the end of the install process.
In my situation, I installed vs2022 with SDK 19041 and WDK 19041.
After some testing, I realized that VS2022 only supports WDK 22621(so on this date). So I installed WDK 22621 and SDK 22621, and problem solved.
If you still can't find Kernel Driver Build option, try run this file C:\Program Files (x86)\Windows Kits\10\Vsix\VS2022\10.0.22621.0\WDK.vsix(WDK 19041 only has VS2019). It's a Visual Studio's extension.
According to this: https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware-winpc/windows-wdk-on-visual-studio-2017-community/fdbd2b44-e57a-4849-903d-04001205a764
WDK is not currently supported by visual studio 2017.
This is ridiculous

Running Unit Tests fails with VS2017 (vstest.console.exe) because the Windows OS is different

I'm trying to run some unit tests from the command line using Visual Studio 2017 and the vstest.console.exe (C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe), The execution completes successfully on Windows 10 OS but it fails on Windows Server 2016 OS.
Any idea what I could be missing here. I'm guessing it's a simple environment variable that is not being set and I'm unable to nail down the same.
Any help, pointers, support is greatly appreciated from all the experienced VS users out there! Thanks!
The error that I notice is
Error Message:
Failed to set up the execution context to run the test
The machines required the installation of an additional package in VS 2017 for the execution of Unit Tests.
These packages were installed by default with the installation of the .Net Desktop environment earlier but with the latest versions of VS 2017 looks like the auto installation of these packages has been disabled and you need to install them explicitly as additional components.
Packages required for Unit Tests to work:
Under Compilers, build tools, and runtimes
Visual C++ 2017 Redistributable Update
VC++ 2017 version 15.8 v14.15 latest v141 tools
VC++ 2017 version 15.7 v14.14 toolset
After the installation of the above packages Unit Tests can execute successfully!

Why is MSTest.exe not installed?

I have a dev machine and a build machine, both of which have Visual Studio 2012 Premium Update 3 installed (Version 11.0.60610.01). Both machines are 64 bit and are running Windows Server 2012 Version 6.2 (Build 9200)
The Dev machine has the following folder which contains MSTest.exe
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE
On the build machine, that folder doesn't exist and searching for mstest.exe shows that it isn't on the build server anywhere.
Opening Control Panel > Programs and trying the Change operation doesn't provide any option to install mstest. All options shown in that Change window are identical on each machine.
The build server is also installed as a TFS agent
I've tried re-installing VS but no change.
Why isn't MStest.exe installed on the build machine and how can I get it installed?
I am using VS2017 and I was facing the same issue and I found it in here.
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\Common7\IDE
Anybody using the VS2017 and facing the same issue can search the directory I have mentioned above to search MSTest.exe
Problem solved - the test components were on the F drive for some reason
This sounds like you did what I did.
If you install the update "2012.3" it will only install minimal components and not the full IDE. Try installing Visual Studio from the ISO (~2GB) and then apply the Update...
I found on a different directory:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\MSTest.exe
EDIT: I came upon this page because I am trying to make the transition from Visual Studio to the Jetbrains Rider IDE and they assisted with some other questions on where to find dependencies for their command line Justmock runner here

Microsoft.ReportView.ProcessingObjectModel Version 8.0.0.0 - Visual Studio 2005-2010

I have a program that was built in Visual Studio 2005. However, this program does not run on Windows 7 machine. I converted the project from Visual Studio 2005 to Visual Studio 2010. I then copied the published files to a Windows 7 laptop and ran the executable from there. When doing so, I got the following error:
Unable to install or run the application. The application requires that assembly Microsoft.ReportView.ProcessingObjectModel Version 8.0.0.0 be installed in the GAC first
Most of the solutions that I have found are for Visual Studio 8. Anybody have an answer?
I was able to resolve this by removing the Microsoft.ReportView.ProcessingObjectModel Version 8.0.0.0 from the assembly and adding 10.0.0.0 instead.

Resources