This error can occur on Windows 8(.1) if you try to run an older application which requires previous DirectX versions to run. In this case, you will have to install the DirectX End-User Runtime. By default the latest version of DirectX is already included in Windows 8.1.