none
VC++ 2015 runtime error

    Question

  • Our C# solution has few C++ projects which used to be on v110 platform tool set till Visual Studio 2012. The C++ binaries were deployed along with the Microsoft_VC110_DebugCRT_x64 (and corresponding release msm for release builds) and Microsoft_VC110_DebugCRT_x86 (and corresponding release msm for release builds) msm files.

    We recently upgraded our solution to Visual Studio 2015 and C++ projects to v140 platform tool set. I found the Microsoft_VC140_DebugCRT_x64, Microsoft_VC140_DebugCRT_x86 and the corresponding release msm files in C:\Program Files (x86)\Common Files\Merge Modules in development machine. But after deployment, the C++ binaries are giving bad image formatting errors while loading.

    I did few research on this and saw some workarounds like copying the ucrtbased.dll and C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\debug_nonredist\x64\Microsoft.VC140.DebugCRT\*.dll files (or corresponding release binaries for release builds) into the deployment directory. But none of them works out for me.

    The same installation package works fine in a machine were Visual Studio 2015 is installed but does not work without Visual Studio 2015 in spite of having CRT files of 14.0 and copying the VC++ binaries manually. We are testing in Windows Server 2012 R2.

    Please help us in fixing this issue.

    Thursday, June 9, 2016 9:14 AM

Answers

  • Hi SoorajEr,

    >>The same installation package works fine in a machine were Visual Studio 2015 is installed but does not work without Visual Studio 2015 in spite of having CRT files of 14.0 and copying the VC++ binaries manually.

    Could you share us the detailed error messages during you install it in the machine without VS IDE?

    As you said that it is the C# solution which also has some VC++ project, and it worked well in your VS2015 machine:

    (1) Please install the .NET framework in your client machine.

    (2) Please also install the latest VC++ Redistributable:

    https://www.microsoft.com/en-us/download/details.aspx?id=51682

    (3) If your project has some third party library references, please also install the third party packages in your client machine.

    Best Regards,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, June 13, 2016 3:12 AM
    Moderator