服務器安裝core環境的過程中,core 的sdk runtime 等都安裝好后,運行程序發現出現異常 例如:
解決方案:
Windows 通用 C 運行庫(Universal C Runtime)是通過Windows Update更新安裝到系統的,更新的編號為KB2999226(10.0.10240.16390)或KB3118401(10.0.10586.9),組件如下:
api-ms-win-core-file-l1-2-0.dll
api-ms-win-core-file-l2-1-0.dll
api-ms-win-core-localization-l1-2-0.dll
api-ms-win-core-processthreads-l1-1-1.dll
api-ms-win-core-synch-l1-2-0.dll
api-ms-win-core-timezone-l1-1-0.dll
api-ms-win-core-xstate-l2-1-0.dll
api-ms-win-crt-conio-l1-1-0.dll
api-ms-win-crt-convert-l1-1-0.dll
api-ms-win-crt-environment-l1-1-0.dll
api-ms-win-crt-filesystem-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-locale-l1-1-0.dll
api-ms-win-crt-math-l1-1-0.dll
api-ms-win-crt-multibyte-l1-1-0.dll
api-ms-win-crt-private-l1-1-0.dll
api-ms-win-crt-process-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-string-l1-1-0.dll
api-ms-win-crt-time-l1-1-0.dll
api-ms-win-crt-utility-l1-1-0.dll
api-ms-win-eventing-provider-l1-1-0.dll(KB3118401不含此文件)
ucrtbase.dll
在C:\window\system\ 或者C:\window\SysWOW64\ 里找不到相應的.dll文件。網上有一些 單個.dll文件的下載,但是嘗試后均無效。正確的做法是micorsoft 官網下載相應更新,再安裝。重啟:
微軟地址:https://support.microsoft.com/en-us/help/3118401/update-for-universal-c-runtime-in-windows
1. 點擊左下角的Windows圖標,點擊控制面板
2. 點擊“系統和安全”,點擊“Windows Update”
3. 點擊“檢查更新”,下載安裝包,安裝即可。
4. 下載更新的獨立程序(缺少哪個就安裝那個)
KB2999226、KB3118401更新下載:
KB2999226 微軟下載鏈接 https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows
KB3118401 微軟下載鏈接 https://support.microsoft.com/en-us/help/3118401/update-for-universal-c-runtime-in-windows