This error happens when you have a mixed C/Fortran application and the settings for the two languages don't agree as to which set of run-time libraries are to be used.This thread has some additional information, though it is C/C++ specific. My guess would be that your Fortran code specifies linking to static libraries and not DLL libraries. Right click on the project, select Properties. Then Fortran > Libraries. Set "Use Run-Time Library" to "Multithread DLL /MD" and do a full rebuild of the project. That may help.
Another way this can happen is if you have C code built with VS2013 or earlier and link to VS2015 or later libraries.