Error MSVCR120.dll is missing on starting XnView

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, helmut, xnview

jgh
Posts: 26
Joined: Wed Jul 19, 2017 4:08 pm

Error MSVCR120.dll is missing on starting XnView

Post by jgh »

Having just installed XnView (2.40, new download of full version), when I start it I get an XnView.exe System error message box come up ''The program can't start because MSVCR120.dll is missing from your computer. Try reinstalling...". But when I click ok, it (XnView) does seem to start up. Neither re-installation of XnView (as suggested in the message), nor a system reboot, have cured the problem.

My system: Windows 7 Professional, 32 bit.

(Edited to correst missing file name in title)
Last edited by jgh on Wed Jul 19, 2017 10:28 pm, edited 1 time in total.
User avatar
xnview
Author of XnView
Posts: 44916
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Error MSCVCR120.dll is missing on starting XnView

Post by xnview »

please try to remove plugin\openexr.dll?
Pierre.
jgh
Posts: 26
Joined: Wed Jul 19, 2017 4:08 pm

Re: Error MSVCR120.dll is missing on starting XnView

Post by jgh »

How might I do that?

Looking under Info > Plug-Ins Information it does not appear in the list of either plugins or Addons; nor can I see it in C:\Program Files\XnView , or any of its subfolders; nor is it mentioned in Plugins.txt.

(But one thing I did notice was in \XnView\Addon\Microsoft.VC90.CRT\msvcr90.dll ,dated 2008)

At installation I left the list of plugins and addons as it came.
User avatar
xnview
Author of XnView
Posts: 44916
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Error MSVCR120.dll is missing on starting XnView

Post by xnview »

what do you have in XnView\Plugins folder?
Pierre.
jgh
Posts: 26
Joined: Wed Jul 19, 2017 4:08 pm

Re: Error MSVCR120.dll is missing on starting XnView

Post by jgh »

In C:\Program Files\XnView\PlugIns :

Code: Select all

BMF_read.dll       
bpg.txt            
bpgdec.exe         
CADImage.dll       
CADImageLicense.txt
charls.dll         
cpa.dll            
CS_Manager.exe     
DC120.dll          
deco_32.dll        
fif-license.txt    
flif_license.txt   
jbig2dec.exe       
ldf.dll            
ldf_jpm.dll        
libflif.dll        
libjpeg-62.dll     
libmng.dll         
libpng15-15.dll    
lwf.dll            
mpeg.dll           
ncc.dll            
openjp2.dll        
pcdlib32.dll       
rwz_sdk.dll        
slide.exe          
VTFLib.dll         
WaveL.dll          
webp.dll           
Xbmf.dll           
Xcompound.dll      
Xeri.dll           
Xfif.dll           
Xfpx.dll           
Xiwc.dll           
Xjbig.dll          
Xjng.dll           
XMrSid.dll         
Xp2.dll            
Xpax.dll           
Xpwc.dll           
Xsff.dll           
Xwhypic.dll        
Xwic.dll           
Xwlm.dll           
Xwmp.dll           
Xwsq.dll           
zlib1.dll     
And (in case its relevant) in C:\Program Files\XnView\Addon

Code: Select all

7z.dll            
cacert.pem        
FIPL.txt          
Flash.lng         
Flash.xnp         
FreeImage.dll     
FTP.lng           
FTP.xnp           
id3lib.dll        
libcurl.dll       
libdsw-1.1.0.dll  
libeay32.dll      
libmcl-6.0.1.dll  
libmpg-2.4.0.dll  
libogg-2.1.0.dll  
libquant.dll      
libquant.txt      
libwmv-3.0.1.dll  
Masks             
Microsoft.VC90.CRT
NeroCD.lng        
NeroCD.xnp        
packJPG.dll       
PackJPG.lng       
PackJPG.xnp       
Paint.lng         
Paint.xnp         
PhotoMasque.dat   
PhotoMasque.lng   
PhotoMasque.xnp   
pngout.exe        
PNGout.lng        
PNgout.xnp        
Riot.dll          
Riot.xnp          
riot_changelog.txt
riot_license.txt  
sqx20.dll         
ssleay32.dll      
UNACEV2.DLL       
unrar.dll         
Unzip32.dll       
xmp.dll           
Zip32.dll         
ZIPPack.lng       
ZIPPack.xnp       
zlib1.dll         
with subfolders Masks & Microsoft.VC90.CRT
User avatar
xnview
Author of XnView
Posts: 44916
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Error MSVCR120.dll is missing on starting XnView

Post by xnview »

Try to move openjp2.dll or webp.dll?
Pierre.
jgh
Posts: 26
Joined: Wed Jul 19, 2017 4:08 pm

Re: Error MSVCR120.dll is missing on starting XnView

Post by jgh »

Renamed webp.dll to ~.dl$, problem has gone away XnView now starts without error.
Just wondering what it was for - it didn't show up in plugins information, so I hope I don't need it.

Anyway, thanks - merci.
User avatar
XnTriq
Moderator & Librarian
Posts: 6387
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Error MSVCR120.dll is missing on starting XnView

Post by XnTriq »

jgh wrote:Renamed webp.dll to ~.dl$, problem has gone away XnView now starts without error.
Just wondering what it was for - it didn't show up in plugins information, so I hope I don't need it.
This I/O plug-in adds read and write support for the WebP file format to XnView.
jgh
Posts: 26
Joined: Wed Jul 19, 2017 4:08 pm

Re: Error MSVCR120.dll is missing on starting XnView

Post by jgh »

Downloaded and unzipped that webp.dll, and copied it to plugins folder, problem has not recurred.

But I notice that that version of webp.dll is not the same size (and date) as the version which came with the XnView 2.40 (Extended) that I downloaded and installed, and that the version in the 'all plugins' zip file is different from both! - I would have expected them to be all the same.
michelg77
Posts: 1
Joined: Tue Oct 17, 2017 6:02 am

Re: Error MSVCR120.dll is missing on starting XnView

Post by michelg77 »

too complicated to read, too long. Headline needed : rename webp.dll webp2.dll
Qastet
Posts: 3
Joined: Thu Oct 19, 2017 4:15 pm

Re: Error MSVCR120.dll is missing on starting XnView

Post by Qastet »

Version 2.43, WinXP, the problem remained. The decision from jgh helped, but it's inconvenient: I advise you to include the library webp.dll in the distribution.
User avatar
XnTriq
Moderator & Librarian
Posts: 6387
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Error MSVCR120.dll is missing on starting XnView

Post by XnTriq »

Please download and install the Visual C++ 2013 runtime libraries:
XnView-User
Posts: 26
Joined: Wed Mar 09, 2016 11:22 am

Re: Error MSVCR120.dll is missing on starting XnView

Post by XnView-User »

The same applies to me on my Windows 7 64-Bit system. I upgraded today from Xnview Full-Version 2.40 to Xnview Full-Version 2.42.

But with this current Version 2.42 I get the same error message saying that “MSVCR120.dll is missing” when starting XnView.
xnview.exe - Systemfehler ab V.2.42.jpg
Strangely, after clicking on OK XnView will start even though.

I immediately rolled back to Version 2.40 because I didn’t have this annoying bug before with Xnview Full-Version 2.40.

And what is written here about installing Visual C++ 2013 doesn’t seem to me relevant because all previous versions of the past years ran smoothly on my system without(!) this Visual C++ 2013. I have other Visual C++ versions installed o my system (please see screenshot)
Zwischenablage-1.jpg
For me this issue is nothing but a bug in the current Version 2.42. It would be great if you could fix this. Thanks.
You do not have the required permissions to view the files attached to this post.
Using: XnView Classic on a Windows 7 64-bit system and XnView MP on a macOS and Windows 10 system.
User avatar
XnTriq
Moderator & Librarian
Posts: 6387
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Error MSVCR120.dll is missing on starting XnView

Post by XnTriq »

XnView-User wrote:And what is written here about installing Visual C++ 2013 doesn’t seem to me relevant because all previous versions of the past years ran smoothly on my system without(!) this Visual C++ 2013. I have other Visual C++ versions installed o my system (please see screenshot)
“What is written here” is relevant because MSVCR120.dll is part of the Visual C++ 2013 (v12.0) redistributable package but isn't included in earlier (2005, 2008) or later (2015) versions.
webp.dll is used by XnView for loading and saving WebP files. To my knowledge, it's the only component of XnView to rely on MSVCR120.dll. Previous versions of webp.dll didn't need MSVCR120.dll, but they were not compatible with Windows XP.
p146213_1.png
p146213_2.png
You've got four options:
  1. Install the Visual C++ 2013 runtime libraries.
  2. Replace \Plugins\webp.dll with an earlier version.
  3. Remove webp.dll from the Plugins sub-directory of your XnView installation (which deactivates support for WebP).
  4. Ignore the error message and continue to use XnView without support for the WebP file format.
You do not have the required permissions to view the files attached to this post.
XnView-User
Posts: 26
Joined: Wed Mar 09, 2016 11:22 am

Re: Error MSVCR120.dll is missing on starting XnView

Post by XnView-User »

Thanks for your answer.

Listen, I’m just a user and not a programmer. Therefore I don’t have a clue what all this Visual C++ stuff is and for what I need it. I also didn’t install this Visual C++ stuff, it came preinstalled on my system and probably with other software installations.

But one thing is for sure:

The here described error came up, on my system, only with Xnview Full-Version 2.42.

Xnview Full-Version 2.40 doesn’t have this error! Version 2.40 starts without this error on my system and that’s the reason why I rolled back to it. And furthermore: All other previous XnView versions from the last years (I’am talking about many years that I use XnView) didn’t have this error as well!

What you are telling us here about Visual C++ and webp.dll files is just very confusing to me, far too confusing for normal users. For me the simple question is:

If XnView suddenly needs this Visual C++ 2013 thing to work properly, why doesn’t it come along with the installer?

Anyway; I choose option number five, the by far easiest solution to this problem:

I will just stick to Xnview Version 2.40 ;-)
Using: XnView Classic on a Windows 7 64-bit system and XnView MP on a macOS and Windows 10 system.