当我尝试在另一台计算机上启动我的c#应用程序而不是它开发时,我收到以下错误消息:
System.IO.FileLoadException: Could not load file or assembly 'Widgets3D, Version=1.0.3511.25568, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
File name: 'Widgets3D, Version=1.0.3511.25568, Culture=neutral, PublicKeyToken=null' ---> System.Runtime.InteropServices.COMException (0x800736B1): This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
我检查了依赖walker和进程监视器,但无法找到任何丢失的DLL。
尤其是错误Widgets3D.dll中提到的那个!
两台PC都是最新的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.
谢谢!