when i try to launch my c# application on another computer than it was developed i get the following error message:
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)
i checked with dependency walker and process monitor but couldnt find any missing DLLs. especially the one mentioned in the error Widgets3D.dll is there!
both PCs are up to date with the latest XP service pack and updates. the application works on many PCs here. there is just this one which is making the problem.
EDIT: as suggested i tried to regsvr32 the missing dll, but that gives me this error:
LoadLibrary("./Widgets3D.dll") failed - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
thanks!
Reading that exception, here is the important part:
System.Runtime.InteropServices.COMException
That's not a .Net assembly. It's a COM dll, and it needs to be registered.
Does the widgets3d need to be installed? Try Regsvr32 over it on the other machine.
Just open a command window and run:
Regsvr32.exe path-to-your-widgets3d.dll
and try again.
You're load library error seems to indicate that other associated dll's required by the 3d library are possibly not registered on the target machine. Try running the installer for the the 3d library on the machine.
Also check this post
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With