mfc120d.dll is missing after opening my project exe - visual-studio

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.

Related

Issue when running an exe file in Visual Studio 2010

Whenever I try running an exe file in Visual Studio 2010 I get the error message: the program can't run because vcruntime140.dll is missing from your computer. And the same message for ucrtbased.dll. I downloaded both of the dlls, but I dont know where to place them within the system files so that this would be solved.

Run c# visual studio project in windows, created in ubuntu

I've got a problem with Visual Studio console application created in Ubuntu 15.04. When I try to run c# program in Visual Studio in Windows 10 I get an error "visual project does not contail any commands in project.json and cannot be start". How to fix that?
I have only json file but I don't have any sln and csproj.
The easiest solution: create new, empty console app and paste content (.cs) files from linux repo to it. Build and compile.
Remember to resolve conflicts which may occur (libs used in linux environment may be problematic in windows).

VSShellStub2.exe - System Error

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

error MSB4019: Microsoft.WebApplication.targets" was not found

I created a project using Visual Studio 2010 and trying to create the build in TFS 2013. I am getting the following error. Target Framework is 4.0. Why my build server is looking for Visual Studio 12.0 folder? How to change this settings? I appreciate any suggestions.
error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\WebApplications\Microsoft.WebApplication.targets" was not found
Copy the directory "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0" from development machine to the build machine.
http://howtoscript.blogspot.com.tr/2014/05/error-msb4019-imported-project-cprogram.html?view=magazine
You need to do one of the following:
Change the build configuration to use 2010
Install VS 2013 on the build server.
I would recommend upgrading your visual studio anyway as you are already 2 versions behind with CTP's already available for DEV14,..

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

Resources