我在 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.
事件日志注释:
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 sxstrace.exe for detailed diagnosis
注意我已经安装了 x86 和 x64 Microsoft Visual C++ 2010 Redistributables。
有趣的是,我尝试在我的工作 x64 Windows 7 笔记本电脑上注册相同的 *.dll 并按预期注册。我想这倾向于缺少某种 C++ 依赖项/与 ATL 相关的事实?
如果有人可以帮助我指出正确的方向或对此事有任何额外的了解;我将不胜感激。
问候。