Windows server 2012 R2 NVENC issue.

Hi,
I have a encoder application which reads BGR, converts it to NV12 and encodes the frames. I have no trouble running it on a machine with Windows server 2016 standard with GeForce 1060 gpu. I am unable to run the same application on a machine with windows server 2012 r2 with quadro p4000 gpu. Its a basic implementation using NVEnc sdk. Sometimes I get an dll missing error involving some Microsoft DLLs. I have used Visual Studio 2017(v141) for developing the application.

TIA.