A. On Windows Server to run GUI programs like ContaCam Desktop Experience is necessary. For Windows Server 2016 or higher it's mandatory to install your server with Desktop Experience (for older versions it was possible to add the Desktop Experience Feature after the server installation through Administrative Tools - Server Manager).
B. If ContaCam is not working re-install the camera drivers.
C. If ContaCam is still not working get DirectX from here and install it.