title: A dynamic link library(DLL) initialization routine failed.(Exception from HRESULT:0x8007045A) Error,while using Pinvoke
body: <p>I  have a WPF application which use pinvoke for calling a C++ method dll name as Project1.dll.when I am installing and using it on windows 7 it is working fine but on windows 8.1 it is giving “Unable to load DLL'C:\MyApp3\project1.dll':A dynamic link library(DLL) initialization routine failed.(Exception from HRESULT:0x8007045A)”. Project1.dll is placed in C:\MyApp3 folder. What is cause of this error can any one suggest? </p>