当我尝试在不同于开发计算机上启动我的C#应用程序时,出现以下错误消息:
System.IO.FileLoadException: 无法加载文件或程序集“Widgets3D,Version = 1.0.3511.25568,Culture = neutral,PublicKeyToken = null”或其某一个依赖项。此应用程序无法启动,因为应用程序配置不正确。重新安装该应用程序可能会解决此问题。 (HRESULT的异常:0x800736B1)
文件名:“Widgets3D,Version = 1.0.3511.25568,Culture = neutral,PublicKeyToken = null”---> System.Runtime.InteropServices.COMException(0x800736B1):此应用程序无法启动,因为应用程序配置不正确。重新安装该应用程序可能会解决此问题。 (HRESULT的异常:0x800736B1)
我使用了Dependency Walker和Process Monitor进行了检查,但找不到任何缺少的DLL。特别是在错误中提到的Widgets3D.dll已经存在!
两台计算机都更新到最新的XP服务包和更新。该应用程序在很多台PC上运行正常。只有这一台计算机出现了问题。
编辑:
如建议所述,我尝试regsvr32缺少的dll,但是出现以下错误:
LoadLibrary("./Widgets3D.dll") failed - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
谢谢!
System.IO.FileLoadException: 无法加载文件或程序集“Widgets3D,Version = 1.0.3511.25568,Culture = neutral,PublicKeyToken = null”或其某一个依赖项。此应用程序无法启动,因为应用程序配置不正确。重新安装该应用程序可能会解决此问题。 (HRESULT的异常:0x800736B1)
文件名:“Widgets3D,Version = 1.0.3511.25568,Culture = neutral,PublicKeyToken = null”---> System.Runtime.InteropServices.COMException(0x800736B1):此应用程序无法启动,因为应用程序配置不正确。重新安装该应用程序可能会解决此问题。 (HRESULT的异常:0x800736B1)
我使用了Dependency Walker和Process Monitor进行了检查,但找不到任何缺少的DLL。特别是在错误中提到的Widgets3D.dll已经存在!
两台计算机都更新到最新的XP服务包和更新。该应用程序在很多台PC上运行正常。只有这一台计算机出现了问题。
编辑:
如建议所述,我尝试regsvr32缺少的dll,但是出现以下错误:
LoadLibrary("./Widgets3D.dll") failed - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
谢谢!
regsvr32
注册? - Kirtan