cudaErrorInsufficientDriver error message CUDA 10.1 Sample Code

Last week when I compiled my cuda program using visual studio 2019, I had no problems.
However, this week is started giving me the “cudaErrorInsufficientDriver” message.
To make sure that it wasn’t my code, I tried running one of the exampes that comes with the cuda installation.

I am reluctant to uninstall cuda and reinstall as I am not entirely certain what I did the first time to ensure that it worked.

My specs are as follows:
Computation purpose: Numerical integration using parrallelization
OS: Windows 10
IDE: Visual Studio 2019
Graphics card: GeForce 1050 Ti
NVIDA Driver: 432.13
CUDA Driver: 10.1.120

Error message:
CUDA error at C:\Users\gil-c\source\repos\cuda-samples-master\cuda-samples-master\Common\helper_cuda.h:791 code=35(cudaErrorInsufficientDriver) “cudaGetDeviceCount(&device_count)”