无法运行vC++,错误代码0xc0150002

问题描述:

我试图在Win7企业版上运行vC++应用程序,VS2010终极版本4.0.30319但未能这么做。 应用程序在运行时失败,声明:应用程序无法正确启动(0xc0150002)。单击确定关闭该应用程序。无法运行vC++,错误代码0xc0150002

我想我错过了一个系统DLL,但不知道从哪里得到它。

完全相同的项目(相同的dll的,lib文件和h文件)运行在不同的类似机器(x64,vs2010),但无法运行在我的。 我也跑dependcy步行者,这是我的本钱:

*****************************| System Information |***************************** 

Dependency Walker:  2.2.6000 (64-bit) 
Operating System:  Microsoft Windows NT/2000/XP/2003/Vista based Enterprise (64-bit) 
OS Version:    6.01.7601 Service Pack 1 
Processor:    Intel64 Family 6 Model 42 Stepping 7, GenuineIntel, ~2594MHz 
Number of Processors: 4, Mask: 0x000000000000000F 
Local Date:    Sunday, April 15, 2012 
Memory Load:    92% 
Physical Memory Total: 4,200,972,288 (4007 MB) 
Physical Memory Used: 3,884,187,648 
Physical Memory Free: 316,784,640 
Page File Memory Total: 8,400,052,224 
Page File Memory Used: 4,405,301,248 
Page File Memory Free: 3,994,750,976 
Virtual Memory Total: 8,796,092,891,136 
Virtual Memory Used:  200,855,552 
Virtual Memory Free:  8,795,892,035,584 
Page Size:    0x00001000 (4,096) 
Allocation Granularity: 0x00010000 (65,536) 
Min. App. Address:  0x0000000000010000 (65,536) 
Max. App. Address:  0x000007FFFFFEFFFF (8,796,092,956,671) 

Side-by-Side components (Windows 2000/XP/2003/Vista/+) 
    [F ] c:\windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_a4d6a923711520a9\COMCTL32.DLL 
    [F ] c:\windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.DLL 
    [F ] c:\windows\winsxs\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.17514_none_2b24536c71ed437a\GDIPLUS.DLL 
The system's "KnownDLLs" list 
    [F ] c:\windows\system32\ADVAPI32.DLL 
    [F ] c:\windows\system32\CFGMGR32.DLL 
    [F ] c:\windows\system32\CLBCATQ.DLL 
    [F ] c:\windows\system32\COMCTL32.DLL 
    [F ] c:\windows\system32\COMDLG32.DLL 
    [F ] c:\windows\system32\CRYPT32.DLL 
    [F ] c:\windows\system32\DEVOBJ.DLL 
    [F ] c:\windows\system32\DIFXAPI.DLL 
    [F ] c:\windows\system32\GDI32.DLL 
    [F ] c:\windows\system32\IERTUTIL.DLL 
    [F ] c:\windows\system32\IMAGEHLP.DLL 
    [F ] c:\windows\system32\IMM32.DLL 
    [F ] c:\windows\system32\KERNEL32.DLL 
    [F ] c:\windows\system32\KERNELBASE.DLL 
    [F ] c:\windows\system32\LPK.DLL 
    [F ] c:\windows\system32\MSASN1.DLL 
    [F ] c:\windows\system32\MSCTF.DLL 
    [F ] c:\windows\system32\MSVCRT.DLL 
    [F ] c:\windows\system32\NORMALIZ.DLL 
    [F ] c:\windows\system32\NSI.DLL 
    [F ] c:\windows\system32\NTDLL.DLL 
    [F ] c:\windows\system32\NTDLL.DLL 
    [F ] c:\windows\system32\OLE32.DLL 
    [F ] c:\windows\system32\OLEAUT32.DLL 
    [F ] c:\windows\system32\PSAPI.DLL 
    [F ] c:\windows\system32\RPCRT4.DLL 
    [F ] c:\windows\system32\SECHOST.DLL 
    [F ] c:\windows\system32\SETUPAPI.DLL 
    [F ] c:\windows\system32\SHELL32.DLL 
    [F ] c:\windows\system32\SHLWAPI.DLL 
    [F ] c:\windows\system32\URLMON.DLL 
    [F ] c:\windows\system32\USER32.DLL 
    [F ] c:\windows\system32\USP10.DLL 
    [F ] c:\windows\system32\WININET.DLL 
    [F ] c:\windows\system32\WINTRUST.DLL 
    [F ] c:\windows\system32\WLDAP32.DLL 
    [F ] c:\windows\system32\WS2_32.DLL 
The application's registered "App Paths" directories 
The system's "PATH" environment variable directories 
    [ ] C:\Oracle11gR2_x64\product\11.2.0\client_1\bin\ 
    [ ] C:\Windows\system32\ 
    [ ] C:\Windows\ 
    [ ] C:\Windows\System32\Wbem\ 
    [ ] C:\Windows\System32\WindowsPowerShell\v1.0\ 
    [ ] C:\Program Files\WIDCOMM\Bluetooth Software\ 
    [ ] C:\Program Files\WIDCOMM\Bluetooth Software\syswow64\ 
    [ ] C:\Program Files\Intel\WiFi\bin\ 
    [ ] C:\Program Files\Common Files\Intel\WirelessCommon\ 
    [ ] C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\ 
    [ ] C:\Program Files\Microsoft SQL Server\100\Tools\Binn\ 
    [ ] C:\Program Files\Microsoft SQL Server\100\DTS\Binn\ 
    [ ] C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\ 
    [ ] C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\ 
    [ ] C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\ 
    [ ] C:\GTK2-Runtime\bin\ 
    [ ] c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\ 
    [ ] C:\Program Files\OpenCV2.3\build\bin\ 
    [ ] C:\Program Files\OpenCV2.3\build\x64\vc10\bin\ 
    [ ] C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86\ 
    [ ] C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64\ 

***************************| Module Dependency Tree |*************************** 
*                    * 
* Legend: F Forwarded Module ? Missing Module  6 64-bit Module  * 
*   D Delay Load Module ! Invalid Module        * 
*   * Dynamic Module  E Import/Export Mismatch or Load Failure  * 
*        ^Duplicate Module       * 
*                    * 
******************************************************************************** 

[ ] GRASPVIEWER.EXE 
    [ ] OPENCV_CORE230D.DLL 
      [ E6] KERNEL32.DLL 
       [FE6] NTDLL.DLL 
      [ ? ] MSVCP90D.DLL 
      [ ] LIBMMDD.DLL 
       [ E6] KERNEL32.DLL 
        [FE6] NTDLL.DLL 
      [ ? ] MSVCR90D.DLL 


... 


********************************| Module List |********************************* 
*                    * 
* Legend: D Delay Load Module ? Missing Module   6 64-bit Module * 
*   * Dynamic Module  ! Invalid Module        * 
*        E Import/Export Mismatch or Load Failure  * 
*                    * 
******************************************************************************** 
[ ? ] MSVCP90D.DLL  Error opening file. The system cannot find the file specified (2). 
[ ? ] MSVCR90D.DLL  Error opening file. The system cannot find the file specified (2). 
[D? ] IESHIMS.DLL  Error opening file. The system cannot find the file specified (2). 

... 

************************************| Log |************************************* 

Error: The Side-by-Side configuration information for "c:\users\ ...\OPENCV_CORE230D.DLL" contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail (14001). 
Error: The Side-by-Side configuration information for "c:\users\ ...\debug\HANDSD.DLL" contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail (14001). 
Error: The Side-by-Side configuration information for "c:\users\ ... \debug\CORE.DLL" contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail (14001). 
Error: The Side-by-Side configuration information for "c:\users\ ... \debug\OPENCV_HIGHGUI230D.DLL" contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail (14001). 
Error: The Side-by-Side configuration information for "c:\users\ ... \debug\OPENCV_IMGPROC230D.DLL" contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail (14001). 
Error: The Side-by-Side configuration information for "c:\users\ ... \debug\FINGERTRACKER.DLL" contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail (14001). 
Error: At least one required implicit or forwarded dependency was not found. 
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module. 
Error: Modules with different CPU types were found. 
Warning: At least one delay-load dependency module was not found. 
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module. 

任何帮助,将不胜感激!谢谢, Omri

+2

例如依赖 - MSVCR90D.DLL - 打开文件时出错。系统找不到指定的文件(2)。 - 为什么VC++ 2010(即* 100.dll)需要.DLL的VC++ 2008(* 90.dll)? – SChepurin 2012-04-15 12:16:18

+0

确实,您的项目最初是否配置为在VC++ 2008下构建? – nevero 2012-04-15 12:17:50

+2

您需要联系DLL所有者并要求更新。它*必须是发布版本,不能在没有VS的机器上运行Debug版本。 – 2012-04-15 13:45:39

你错过的DLL是一个VS调试DLL ...它通常与VS一起安装。如果你在这台机器上有一个特殊的配置,可能是因为这个DLL放错了地方或者只是丢失了。如果缺失,请尝试通过修复安装从VS安装程序获取它。

编辑:

如果您不需要这个特殊的DLL可以随时删除您的项目配置

+0

谢谢,我已经重新安装VS2010,但没有解决它。我怎样才能消除这种依赖性?它不是由我直接引用,而是由我使用的另一个DLL。 – Omri374 2012-04-15 12:14:56

+0

如果它被另一个引用,则不能删除依赖项。 – nevero 2012-04-15 12:17:17

+0

你碰巧知道哪个VS包含这些DLL?谢谢 – Omri374 2012-04-15 14:03:45