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. 安装ecb

    mac emacs上安装ecb,通过elpa折腾得要死,死活无法使用. 解决办法:下载https://github.com/alexott/ecb,添加路径,(require 'ecb),直接ok.

  2. GOF23设计模式之策略模式(strategy)

    一.策略模式概述 策略模式对应于解决某一个问题的一个算法族,允许用户从该算法族中任选一种算法解决一个问题,同时可以方便的更换算法或者增加新的算法.并且由客户端决定调用哪个算法. 策略模式的本质: 分离 ...

  3. MySQL 5.7.18 主从复制 Error1205

    从库报 error 1205 1.mysql报错信息 [root@slave2(35.102) ~]# mysql -uroot -p Enter password: Welcome to the M ...

  4. 解决: Project facet Java version 1.8 is not supported

    背景 从别处Import一个Java project之后,Eclipse提示“Project facet Java version 1.8 is not supported”. 分析 从错误的描述来看 ...

  5. uboot环境变量的设置(未完待续)

    使用print打印当前系统环境变量. 1. SMDK2440 # print baudrate=115200 bootargs=noinitrd root=/dev/nfs nfsroot=192.1 ...

  6. Java复习——I/O与序列化

    File类 java.io.File只用于表示文件(目录)的信息(名称.大小等),不能用于文件内容的访问,我们可以通过通过给其构造函数传一个路径来构建以文件,传入的路径名有一个小问题,就是Window ...

  7. Cookie与Session的复习

    Cookie Cookie是HTTP协议制定的.先由服务器保存Cookie到浏览器,再下次浏览器请求服务器时把上一次请求得到Cookie再归还给服务器.由服务器创建保存到客户端浏览器的一个键值对(由服 ...

  8. Hashtable、HashMap

    JDK1.6 API public class Hashtable<K,V>extends Dictionary<K,V>implements Map<K,V>, ...

  9. ansible初识三

    一.setup模块 ansible的 setup模块主要用来收集信息, 查看参数: [root@localhost ~]# ansible-doc -s setup # 查看参数,部分参数如下: fi ...

  10. PHP 连接打开新网页带参数

    PHP 连接打开新网页带参数 detail.php?ID=<?PHP echo $row['ID'];?> aa.php?ID=123 取ID参数 $aid=$_GET['ID']; 网页 ...