When I run the Server application on Windows Server 2012 R2 operation system.

I meet the error:MSVCP140D.dll is missing from your computer.

Then I download it from MS site :

https://www.microsoft.com/en-US/download/details.aspx?id=48145

But I install vc_redist.x64.exe failed.

Then I got that Windows8.1-KB2999226-x64.msu should be installed to solve it.

But during installation I see the following error.

C:>DISM.exe /Online /Add-Package /PackagePath:D:\install_package\Windows8.1-KB299926-x64.msu

Processing 1 of 1 An error occurred D:\install_packaget\Windows8.1-KB299926-x64msu Error:0x8007003

Error:3

When I open the file c:\windows\logs\dism\dism.log, I saw this:


DISM DISM Provider Store: PID=7296 TID=7012 Getting Provider DISM Package Manager - CDISMProviderStore::GetProvider

2018-01-17 18:12:11, Info DISM DISM Provider Store: PID=7296 TID=7012 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider

2018-01-17 18:12:11, Info DISM DISM Package Manager: PID=7296 TID=7012 Processing the top level command token(add-package). - CPackageManagerCLIHandler::Private_ValidateCmdLine

2018-01-17 18:12:11, Info DISM DISM Package Manager: PID=7296 TID=7012 Attempting to route to appropriate command handler. - CPackageManagerCLIHandler::ExecuteCmdLine

2018-01-17 18:12:11, Info DISM DISM Package Manager: PID=7296 TID=7012 Routing the command... - CPackageManagerCLIHandler::ExecuteCmdLine

2018-01-17 18:12:11, Info DISM DISM Package Manager: PID=7296 TID=7012 Encountered the option "packagepath" with value "D:\install_package\Windows8.1-KB2999226-x64.cab" -ckageManagerCLIHandler::Private_GetPackagesFromCommandLine

2018-01-17 18:12:11, Error DISM DISM Package Manager: PID=7296 TID=7012 Incorrect parameter D:\install_package\Windows8.1-KB2999226-x64.cab - path not found - CDISMPackageManager::Internal_CreatePackageByPath(hr:0x80070003)

2018-01-17 18:12:11, Error DISM DISM Package Manager: PID=7296 TID=7012 Failed to get the underlying CBS package. - CDISMPackageManager::OpenPackageByPath(hr:0x80070003)

2018-01-17 18:12:11, Error DISM DISM Package Manager: PID=7296 TID=7012 Failed to open the package at location: "D:\install_package\Windows8.1-KB2999226-x64.cab" - CPackageManagerCLIHandler::ProcessPackagePath(hr:0x80070003)

2018-01-17 18:12:11, Error DISM DISM Package Manager: PID=7296 TID=7012 Failed while processing command add-package. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x80070003)

2018-01-17 18:12:11, Info DISM DISM Package Manager: PID=7296 TID=7012 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine


Solution:

Change the directory.
My Windows8.1-KB2999226-x64.msu is under directory(you can search in the windwos explorer):

C:\ProgramData\Package Cache\FC6260C33678BB17FB8B88536C476B4015B7C5E9\packages\Patch\x64

copy this file (Windows8.1-KB2999226-x64.msu) to a folder you like, such as:

1.Create a C:\temp\2999226 folder

  1. Use the following command to extract the contents of the MSU file:
    Expand –F:* c:\temp\2999226\Windows8.1-KB2999226-x64.msu c:\temp\2999226

3.Now try the following command(as administrator):

D:\install_package>DISM.exe /Online /Add-Package /PackagePath:C:\Temp\2999226\Windows8.1-KB2999226-x64.cab

Then I success in completing the operation.

4.Run the following command:

D:\install_pcakage>vc_redist.x64.exe /repair

Then click repair, you will see the vc_redist.x64.exe is completely installed.

5.reboot the computer.(maybe you do not need it)

Congratulations!!!!

I hope the article will help everyone.

[Reference]

https://answers.microsoft.com/en-us/windows/forum/windows8_1-files/msvcp140ddll-is-missing-from-your-computer/c253126e-8f11-45d0-828d-8ede40c3126a?auth=1

https://social.msdn.microsoft.com/Forums/vstudio/en-US/64baed8c-b00c-40d5-b19a-99b26a11516e/visual-c-redistributable-for-visual-studio-2015-rc-fails-on-windows-server-2012?forum=vssetup

https://blogs.technet.microsoft.com/askcore/2011/02/15/how-to-use-dism-to-install-a-hotfix-from-within-windows/

Windows Server 2012 R2 Standard x64 deploy Visual Studio 2015 Application的更多相关文章

  1. .net core 2.2部署到Windows Server 2012 R2 standard

    安装.net core 2.2 下载地址:https://dotnet.microsoft.com/download/dotnet-core/2.2 找到ASP.NET Core Runtime 2. ...

  2. Windows Server 2012 R2 Standard序列号

    备用一个吧,免得用起来的时候找不到. NB4WH-BBBYV-3MPPC-9RCMV-46XCB

  3. Windows Server 2012 R2 官方原版镜像

    微软操作系统 Windows Server 2012 R2 官方原版镜像 Windows Server 2012 R2 是由微软公司(Microsoft)设计开发的新一代的服务器专属操作系统,其核心版 ...

  4. Windows Server 2012 R2安装SqlServer 2016

    1.系统安装 微软操作系统 Windows Server 2012 R2 官方原版镜像 Windows Server 2012 R2 是由微软公司(Microsoft)设计开发的新一代的服务器专属操作 ...

  5. 微软操作系统 Windows Server 2012 R2 官方原版镜像

    微软操作系统 Windows Server 2012 R2 官方原版镜像 Windows Server 2012 R2 是由微软公司(Microsoft)设计开发的新一代的服务器专属操作系统,其核心版 ...

  6. [MSDN] Windows Server 2012 R2 简/繁/英下载

    Windows Server 2012 R2 Chinese-Simplified ISO SHA1-------------------------------------------------- ...

  7. (转)Windows Server 2012 R2虚拟机自激活(AVMA)技术

    转自: 老丁的技术博客 相信Hyper-v管理员都有这样的经历,安装多台虚拟机后,都要一台一台手工激活,如果虚拟机足够多的话,这是一项很繁琐的工作,但从Windows Server 2012 R2开始 ...

  8. Windows Server 2012 R2 with Update (x64) - DVD (Chinese-Simplified)

    http://www.msdn.hk/html/2014/1404.html Windows Server 2012 R2 with Update (x64) - DVD (Chinese-Simpl ...

  9. Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境搭建教程

    原文地址:http://www.osyunwei.com/archives/7378.html 搬运是为了自己找资料方便. 准备篇 一.环境说明: 操作系统:Windows Server 2012 R ...

随机推荐

  1. Unix网络编程 3.9 readline函数

    其实看APUE时就想试着写些简单的stdio函数了,但是一直没实践,看到这里时发现书上写得不完整,便敲代码试了下. 第1个readline速度非常慢原因在于每次读取字符都执行了系统调用read(),而 ...

  2. GOF23设计模式之原型模式(prototype)

    一.原型模式概述 1.通过new产生一个对象需要非常繁琐的数据准备和访问权限,则可以使用原型模式. 2.就是java中的克隆技术,以某个对象为原型,复制出新的对象,显然,新的对象具备原型对象的特点. ...

  3. Hibernate学习10——Hibernate 查询方式

    本章主要是以查询Student的例子: Student.java: package com.cy.model; public class Student { private int id; priva ...

  4. 如何使用 J2EE 连接器架构实现企业应用

    JCA (J2EE 连接器架构,javaConnector Architecture)是对J2EE标准集的重要补充.因为它注重的是将Java程序连接到非Java程序和软件包中间件的开发.连接器特指基于 ...

  5. 在centOS5.9安装asterisk

    最近一直在研究asterisk这个服务器,Asterisk 是一个开放源代码的软件VoIP PBX系统,它是一个运行在Linux环境下的纯软件实施方案.Asterisk是一种功能非常齐全的应用程序,提 ...

  6. POJ1159解题心得

    题目:http://poj.org/problem?id=1159 刚开始,从样例的特征去思考.总让我从回文数的角度去思考,想出几个方案,可都用了数据去检验,发现不行.如:ABCDDCB,BACDCA ...

  7. canvas之旋转一条线段

    <canvas id="canvas" width="600" height="500" style="background ...

  8. 浅谈PHP面向对象编程(三、构造方法和析构方法)

    3.0 构造方法和析构方法 从我之前的博客可以发现,实例化一个类的对象后,如果要为这个对象的属性赋值,需要直接访问该对象的属性.如果想要在实例化对象的同时就为这个对象的属性进行赋值,则可以通过构造方法 ...

  9. C++中结构体与类的区别 1

    转载来源:http://blog.sina.com.cn/s/blog_48f587a80100k630.html C++中的struct对C中的struct进行了扩充,它已经不再只是一个包含不同数据 ...

  10. Splash Screen 加载窗体 [not finished]

    对于windows开 发人员来说在打开VS开发工具时,总是先呈现一个SplashScreen界面,登上几秒钟后才打开VS的主界面.这样的效果一般是在主界面需要加载大量 资源,为避免主界面变成“死”界面 ...