Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 1개 있습니다.)

The program can't start because VCRUNTIME140.dll is missing from your computer. Try reinstalling the program to fix this problem.

Visual C++로 만든 프로그램을 다른 PC에 복사했을 때 다음과 같은 오류가 발생한다면?

System Error
The program can't start because VCRUNTIME140.dll is missing from your computer. Try reinstalling the program to fix this problem. 

오류 메시지가 의미하는 그대로 해당 PC에 VCRUNTIME140.dll이 없기 때문입니다. 따라서, 다음의 파일을 다운로드해,

Visual C++ Redistributable for Visual Studio 2015
; https://www.microsoft.com/en-us/download/details.aspx?id=48145

문제가 발생하는 그 PC에 설치해 주시면 됩니다.




참고로, 다음과 같이 오류가 발생한다면?

System Error
The program can't start because ucrtbased.dll is missing from your computer. Try reinstalling the program to fix this problem. 

System Error
The program can't start because VCRUNTIME140D.dll is missing from your computer. Try reinstalling the program to fix this problem. 

Visual C++로 그 프로그램을 (Release가 아닌) Debug 모드로 빌드했기 때문입니다. 현재 Debug 모드를 위한 DLL 재배포 모듈은 마이크로소프트에서 공식적으로 제공하지 않고 있습니다. 따라서 해당 프로그램을 Release 모드로 다시 빌드해 배포하는 것이 정석입니다.

하지만, 때로는 디버깅 등의 목적으로 대상 PC에 디버그 모드로 빌드한 프로그램을 실행해야 하는 경우도 있긴 한데요. 그런 경우에는 그냥 관련 DLL들을 모두 함께 복사하면 됩니다. 예를 들어, Visual Studio 2019의 경우 다음의 경로에 이러한 Debug CRT 모듈을 포함하고 있는데요.

[x64 - VCRUNTIME140D.dll]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Redist\MSVC\14.28.29325\debug_nonredist\x64\Microsoft.VC142.DebugCRT
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Redist\MSVC\14.29.30133\debug_nonredist\x64\Microsoft.VC142.DebugCRT

[x86 - VCRUNTIME140D.dll]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Redist\MSVC\14.28.29325\debug_nonredist\x86\Microsoft.VC142.DebugCRT

[x64 - Windows 10 17763 UCRT]
C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\ucrt
C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\ucrt
C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\ucrt

[x86 - Windows 10 17763 UCRT]
C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\ucrt

에러가 나는 DLL들을 위의 경로(또는 그와 비슷한 경로)에서 찾아 대상 PC에 EXE와 같은 경로로 복사하면 됩니다.




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 5/15/2023]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




1  2  3  4  5  6  7  8  [9]  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13395정성태7/20/20233305개발 환경 구성: 685. 로컬에서 개발 중인 ASP.NET Core/5+ 웹 사이트에 대해 localhost 이외의 호스트 이름으로 접근하는 방법
13394정성태7/16/20233249오류 유형: 873. Oracle.ManagedDataAccess.Client - 쿼리 수행 시 System.InvalidOperationException
13393정성태7/16/20233413닷넷: 2133. C# - Oracle 데이터베이스의 Sleep 쿼리 실행하는 방법
13392정성태7/16/20233278오류 유형: 872. Oracle - ORA-01031: insufficient privileges
13391정성태7/14/20233366닷넷: 2132. C# - sealed 클래스의 메서드를 callback 호출했을 때 인라인 처리가 될까요?
13390정성태7/12/20233337스크립트: 53. 파이썬 - localhost 호출 시의 hang 현상
13389정성태7/5/20233319개발 환경 구성: 684. IIS Express로 호스팅하는 웹을 WSL 환경에서 접근하는 방법
13388정성태7/3/20233504오류 유형: 871. 윈도우 탐색기에서 열리지 않는 zip 파일 - The Compressed (zipped) Folder '[...].zip' is invalid. [1]파일 다운로드1
13387정성태6/28/20233530오류 유형: 870. _mysql - Commands out of sync; you can't run this command now
13386정성태6/27/20233600Linux: 61. docker - 원격 제어를 위한 TCP 바인딩 추가
13385정성태6/27/20233798Linux: 60. Linux - 외부에서의 접속을 허용하기 위한 TCP 포트 여는 방법
13384정성태6/26/20233546.NET Framework: 2131. C# - Source Generator로 해결하는 enum 박싱 문제파일 다운로드1
13383정성태6/26/20233307개발 환경 구성: 683. GPU 런타임을 사용하는 Colab 노트북 설정
13382정성태6/25/20233345.NET Framework: 2130. C# - Win32 API를 이용한 윈도우 계정 정보 (예: 마지막 로그온 시간)파일 다운로드1
13381정성태6/25/20233730오류 유형: 869. Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
13380정성태6/24/20233193스크립트: 52. 파이썬 3.x에서의 동적 함수 추가
13379정성태6/23/20233205스크립트: 51. 파이썬 2.x에서의 동적 함수 추가
13378정성태6/22/20233093오류 유형: 868. docker - build 시 "CANCELED ..." 뜨는 문제
13377정성태6/22/20236855오류 유형: 867. 파이썬 mysqlclient 2.2.x 설치 시 "Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually" 오류
13376정성태6/21/20233282.NET Framework: 2129. C# - Polly를 이용한 클라이언트 측의 요청 재시도파일 다운로드1
13375정성태6/20/20232977스크립트: 50. Transformers (신경망 언어모델 라이브러리) 강좌 - 2장 코드 실행 결과
13374정성태6/20/20233106오류 유형: 866. 파이썬 - <class 'AttributeError'> module 'flask.json' has no attribute 'JSONEncoder'
13373정성태6/19/20234395오류 유형: 865. 파이썬 - pymssql 설치 관련 오류 정리
13372정성태6/15/20233103개발 환경 구성: 682. SQL Server TLS 통신을 위해 사용되는 키 길이 확인 방법
13371정성태6/15/20233109개발 환경 구성: 681. openssl - 인증서 버전(V1 / V3)
13370정성태6/14/20233288개발 환경 구성: 680. C# - Ubuntu + Microsoft.Data.SqlClient + SQL Server 2008 R2 연결 방법 - TLS 1.2 지원
1  2  3  4  5  6  7  8  [9]  10  11  12  13  14  15  ...