如何确定.NET应用程序的依赖项?Dependency Walker是否适用于托管应用程序?我已经下载了最新的并尝试过分析应用程序,但它只是在没有太多解释的情况下退出.如果它不能与.NET一起使用,那么是否有其他工具可以帮助我调试运行时DLL加载问题?
在带有Internet Explorer 8的Windows XP Professional SP3上,当我在我的可执行文件上运行Dependency Walker时,它报告:IESHIMS.DLL和WER.DLL无法找到.
我相信他们应该位于C:\ Windows\System32\Wer.dll和C:\ Program Files\Internet Explorer\Ieshims.dll
什么是Linux的ldd在Windows上的等价物?
我一直在尝试使用Dependency Walker解析可执行文件的.dll依赖项.目前,我正在以下列形式丢失.dll:
API-MS-WIN -XXX
EXT-MS-WIN -XXX
例如:
API-MS-WIN-APPMODEL-IDENTITY-L1-2-0.DLL
API-MS-WIN-APPMODEL-RUNTIME-INTERNAL-L1-1-0.DLL
API-MS-WIN-BASE-UTIL-L1-1-0.DLL
API-MS-WIN-CORE-APIQUERY-L1-1-0.DLL
EXT-MS-WIN-RTCORE-NTUSER-SYSCOLORS-L1-1-0.DLL
Run Code Online (Sandbox Code Playgroud)
有没有人对如何解决这些问题有任何想法?任何帮助将不胜感激!
附加信息:我使用Visual Studio 2013编译了可执行文件.最有趣的是我在编译期间没有收到任何错误.但是,由于缺少依赖项,我无法运行它.我还附上了依赖性walker的截图:
更新1:作为解决问题的尝试,我尝试将编译期间VS使用的库的路径添加到$ PATH环境变量,而没有任何运气(Dependency Walker仍然显示未解析的依赖项).
windows dll dependencies dependency-walker visual-studio-2013
我试图kernel32.dll在Windows 10上使用依赖步行器打开.我收到以下错误和警告:
错误:找不到至少一个必需的隐式或转发依赖项
警告:找不到至少一个延迟加载依赖项模块.
我正在运行Windows 10 32Bit,依赖性walker也是32Bit.另外,我正在运行依赖walker作为Admin.
我需要一个工具以某种图形方式显示所有共享库依赖项,而不仅仅是ldd每个.so.对于MS Windows Dependency Walker的工作原理.Linux有什么用的吗?
.
在Windows 7 x64下,当我尝试使用最新版本的Dependency Walker(2.2.6000)分析x86可执行文件时,分析过程始终会挂起.大多数情况下,加载的最后一个DLL是c:\windows\syswow64\URLMON.DLL,因此似乎该DLL内部的某些内容导致了问题.在Windows 7 x86上分析相同的可执行文件可以完美地运行.
我用Google搜索得非常广泛,但无法找到问题的解决方案.我发现的一个建议是卸载IE 8或IE 9并用IE 7替换它,但这并没有真正帮助.我能观察到的唯一影响是,在IE 7中,分析过程会挂起在不同的DLL上(iertutil.dll如果我没记错的话,也可以从系统的syswow64文件夹中找到).
所以我的问题是:如何让Dependency Walker在x64 Windows 7上配置x86应用程序?当然,首先要知道问题存在的原因也很好:-)
最后的一些说明:
我在我的应用程序中使用其中一个Dll时遇到了一些问题,并在其上运行了依赖walker.我不知道如何阅读它,但我得到了以下结果
它是否暗示任何x86-x64不兼容?无论如何我能解决这个问题吗?
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.
Run Code Online (Sandbox Code Playgroud) 我在Windows 7 x64下注册*.dll时遇到问题.
我尝试将*.dll放在C:/ Windows/System32和C:/ Windows/SysWOW64中,并尝试在提升的命令提示符下注册"regsvr32 xxxxx.dll".我也尝试从一个单独的目录注册它.它响应以下错误:
The module "xxxxx.dll" failed to load.
Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.
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.
Run Code Online (Sandbox Code Playgroud)
EventLog注意到:
Activation context generation failed for "C:\(path-to-dll)
Dependent Assembly
Microsoft.VC90.ATL,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found.
Please use …Run Code Online (Sandbox Code Playgroud) 我.pyd在 Visual Studio 2019(社区)中构建了一个,它为仅存在于 LibRaw 中的某些功能提供了包装器。该解决方案编译成功,没有任何警告或错误。该项目使用 LibRaw、OpenCV 和 pybind11 以及Python.h相应的.lib文件。
当我尝试导入.pydPython 解释器内部时,我得到:
C:\\Users\\Tim.Hilt\\source\\repos\\cr3_converter\\Release>dir\n Datentr\xc3\xa4ger in Laufwerk C: ist Acer\n Volumeseriennummer: EC36-E45E\n\n Verzeichnis von C:\\Users\\Tim.Hilt\\source\\repos\\cr3_converter\\Release\n\n22.01.2020 11:28 <DIR> .\n22.01.2020 11:28 <DIR> ..\n22.01.2020 11:28 808 cr3_converter.exp\n22.01.2020 11:28 3.068.361 cr3_converter.iobj\n22.01.2020 11:28 785.552 cr3_converter.ipdb\n22.01.2020 11:28 1.908 cr3_converter.lib\n22.01.2020 11:28 4.190.208 cr3_converter.pdb\n22.01.2020 11:28 953.856 cr3_converter.pyd\n31.10.2019 16:22 26.408.085 IMG_0482_raw.CR3\n 7 Datei(en), 35.408.778 Bytes\n 2 Verzeichnis(se), 77.160.587.264 Bytes frei\n\nC:\\Users\\Tim.Hilt\\source\\repos\\cr3_converter\\Release>python\nPython 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit …Run Code Online (Sandbox Code Playgroud) dll ×6
c++ ×3
windows ×3
dependencies ×2
.net ×1
c# ×1
importerror ×1
ldd ×1
linker ×1
linux ×1
pinvoke ×1
python ×1
regsvr32 ×1
unix ×1
windows-10 ×1