The full, EXACT error message would certainly help.. IN addition, you told us nothing about your computer regarding operating system, make and model, etc. You also didn't tell us the photo program which is trying to open the photo. Did you try changing the default photo opening program? The more information you give us, the better informed our answer will be.
In the meantime, because the portion of the error message you quoted can occur with a number of programs and operating systems, the best option would be to first run System File Checker "sfc /scannow" from a command prompt would should repair any corrupted files preventing the correct programs from opening. This is a fix that helped most folks take care of the error.
Next, if you've recently updated to Windows 10 from an earlier operating system, you might need to download the latest Microsoft Visual C++ 2005 and 2008 installers from Microsoft, then uninstall the previous versions, then reinstall using the new packages.. Or simply run vthe latest Visual C++ installer from the link below might get it done also. There's no problem having them all installed.
Visual C++ Redistributable Packages for Visual Studio 2013
If that doesn't fix it, then running a repair install of your operating system should do the trick.
Hope this helps.
When I double click on a photo on my hard drive I get an error message "side by side configuration is incorrect"