Home
%3CLINGO-SUB%20id%3D%22lingo-sub-1074724%22%20slang%3D%22en-US%22%3EMSVCR71.dll%20is%20missing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1074724%22%20slang%3D%22en-US%22%3E%3CP%3EIIS%20relies%20on%20libraries%20with%20functions%20to%20host%20ASP.NET%2C%20PHP%20and%20other%20types%20of%20web%20applications.%20MSVCR71.dll%20is%20one%20of%20them%20(It%20is%20needed%20for%20PHP%20to%20run%20on%20IIS%20server)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20my%20case%2C%20users%20were%20trying%20to%20upload%20files%20to%20the%20application%20but%20they%20were%20failing.%20There%20were%20no%20visible%20error%20message%20on%20the%20application.%20However%2C%20we%20saw%20the%20message%20below%20in%20Event%20Viewer%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EFaulting%20application%20name%3A%20php-cgi.exe%2C%20version%205.2.11.11%0AFaulting%20module%20name%3A%20php-cgi.exe%2C%20version%205.2.11.11%0AException%20code%3A%200xc0000005%0AFaulting%20application%20path%3A%20C%5Cphp%5Cphp-cgi.exe%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F162607i3CFD0C55F243BA27%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F162606i770FADBEA7A8DF8A%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_1.png%22%20title%3D%22clipboard_image_1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20order%20to%20narrow%20down%20the%20issue%2C%20I%20tried%20to%20run%26nbsp%3Bphp-cgi.exe%26nbsp%3Bfile%20located%20under%26nbsp%3BC%3A%5Cphp%26nbsp%3Bfolder.%20Here%20is%20the%20error%20message%20I%20got%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EThe%20program%20can%E2%80%99t%20start%20because%20MSVCR71.dll%20is%20missing%20from%20your%20computer.%20Try%20reinstalling%20the%20program%20to%20fix%20this%20problem.%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F162608i2F0A60ECA1D1F2B0%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_2.png%22%20title%3D%22clipboard_image_2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1438504931%22%20id%3D%22toc-hId--1438504928%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-1049007902%22%20id%3D%22toc-hId-1049007905%22%3ERoot%20Cause%3C%2FH2%3E%0A%3CP%3EIn%20my%20scenario%2C%20%E2%80%9CMissing%20MSVCR72.dll%E2%80%9D%20issue%20occurred%20because%20-probably-%20the%20latest%20Windows%20security%20patches%20somehow%20deleted%20this%20file.%20In%20support%20to%20this%20theory%2C%20we%20saw%20that%20security%20patches%20and%20a%20new%20version%20of%26nbsp%3B%3CSTRONG%3EVisual%20C%2B%2B%20Redistributable%3C%2FSTRONG%3E%26nbsp%3Binstalled%20in%20the%20server%20at%20the%20same%20time%20the%20issue.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--758446561%22%20id%3D%22toc-hId--758446558%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-1729066272%22%20id%3D%22toc-hId-1729066275%22%3ESolution%3C%2FH2%3E%0A%3CP%3ESearch%20for%20the%20missing%20file%20(MSVCR72.dll)%20in%20other%20servers%20and%20even%20client%20machines.%20If%20you%20find%20it%2C%20copy%20it%20to%26nbsp%3BC%3A%5CWindows%5CSysWOW64%26nbsp%3Bfolder.%20This%20solved%20the%20issue%20in%20my%20case.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20can%E2%80%99t%20find%20the%20missing%20DLL%20in%20other%20machines%2C%20I%20would%20recommend%20installing%20(or%20reinstalling)%20the%20correct%20version%20of%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fsupport.microsoft.com%252Fen-us%252Fhelp%252F2977003%252Fthe-latest-supported-visual-c-downloads%26amp%3Bdata%3D02%257C01%257CNedim.Sahin%2540microsoft.com%257Cf20d6afd4eb84f0da70f08d783354355%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637122137093236603%26amp%3Bsdata%3DfAVxbERUyHFXFUWyb%252FMucnKkS4L7D81nUS9NznZK8Iw%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EVisual%20C%2B%2B%20Redistributable%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EIf%20it%20doesn%E2%80%99t%20work%2C%20try%20reinstalling%20the%20latest%20security%20patches%20and%20Visual%20C%2B%2B%20Redistributable.%20You%20ay%20also%20want%20to%20use%26nbsp%3Bsfc%26nbsp%3Band%26nbsp%3Bdism%26nbsp%3Btools.%3C%2FP%3E%0A%3CP%3EHere%20is%20a%20related%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fforums.iis.net%252Ft%252F1149374.aspx%253FC%252BPHP%252Bphp%252Bcgi%252Bexe%252BThe%252BFastCGI%252Bprocess%252Bexited%252Bunexpectedly%26amp%3Bdata%3D02%257C01%257CNedim.Sahin%2540microsoft.com%257Cf20d6afd4eb84f0da70f08d783354355%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637122137093236603%26amp%3Bsdata%3D8IjNlsN%252BsK5Ng9%252FOPaNT%252BY9AkSDkpV7avPmHTDowui0%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EIIS%20Forum%3C%2FA%3E%26nbsp%3Bpost.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1074724%22%20slang%3D%22en-US%22%3E%3CP%20style%3D%22margin%3A%200cm%200cm%207.5pt%200cm%3B%22%3E%3CSPAN%20style%3D%22font-size%3A%2013.5pt%3B%20font-family%3A%20'Arial'%2Csans-serif%3B%20color%3A%20%236b6b6b%3B%22%3EIIS%20relies%20on%20libraries%20with%20functions%20to%20host%20ASP.NET%2C%20PHP%20and%20other%20types%20of%20web%20applications.%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-size%3A%2013.5pt%3B%20font-family%3A%20'Arial'%2Csans-serif%3B%20color%3A%20%236b6b6b%3B%22%3EMSVCR71.dll%20is%20one%20of%20them%20(It%20is%20needed%20for%20PHP%20to%20run%20on%20IIS%20server)%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Microsoft

IIS relies on libraries with functions to host ASP.NET, PHP and other types of web applications. MSVCR71.dll is one of them (It is needed for PHP to run on IIS server)

 

In my case, users were trying to upload files to the application but they were failing. There were no visible error message on the application. However, we saw the message below in Event Viewer:

 

Faulting application name: php-cgi.exe, version 5.2.11.11
Faulting module name: php-cgi.exe, version 5.2.11.11
Exception code: 0xc0000005
Faulting application path: C\php\php-cgi.exe

clipboard_image_0.pngclipboard_image_1.png

 

In order to narrow down the issue, I tried to run php-cgi.exe file located under C:\php folder. Here is the error message I got:

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

clipboard_image_2.png

 

Root Cause

In my scenario, “Missing MSVCR72.dll” issue occurred because -probably- the latest Windows security patches somehow deleted this file. In support to this theory, we saw that security patches and a new version of Visual C++ Redistributable installed in the server at the same time the issue.

 

Solution

Search for the missing file (MSVCR72.dll) in other servers and even client machines. If you find it, copy it to C:\Windows\SysWOW64 folder. This solved the issue in my case.

 

If you can’t find the missing DLL in other machines, I would recommend installing (or reinstalling) the correct version of Visual C++ Redistributable.

If it doesn’t work, try reinstalling the latest security patches and Visual C++ Redistributable. You ay also want to use sfc and dism tools.

Here is a related IIS Forum post.