bzip2.dll

in Help Center
Hi,
I am developing with Ice for .Net using c# with Visual Studio 2005.
Everything works well, except for the fact that each time the Ice.dll is loaded I can see an exception thrown (note that this exception is internally caught, so there is no particular problem for running my program).
This exception say that:
'myprog' (Managed): Loaded 'C:\myprog\bin\x86\Debug\Ice.dll', Symbols loaded.
A first chance exception of type 'System.DllNotFoundException' occurred in Ice.dll
Additional information: Unable to load DLL 'bzip2.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
So it is about bzip2.dll. This dll is not a c# assembly but a c++ one it seems, so I cannot simply add it as a reference in my project.
My question is: how can I ensure that bzip2.dll is found (and thus that compression features are enabled)?
Thanks a lot in advance.
I am developing with Ice for .Net using c# with Visual Studio 2005.
Everything works well, except for the fact that each time the Ice.dll is loaded I can see an exception thrown (note that this exception is internally caught, so there is no particular problem for running my program).
This exception say that:
'myprog' (Managed): Loaded 'C:\myprog\bin\x86\Debug\Ice.dll', Symbols loaded.
A first chance exception of type 'System.DllNotFoundException' occurred in Ice.dll
Additional information: Unable to load DLL 'bzip2.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
So it is about bzip2.dll. This dll is not a c# assembly but a c++ one it seems, so I cannot simply add it as a reference in my project.
My question is: how can I ensure that bzip2.dll is found (and thus that compression features are enabled)?
Thanks a lot in advance.
0
Comments
Thanks for your reply.
What you proposed is not very convenient when deploying an application, I think you'll agree.
Ice.dll seems to search first for bzip2.dll being in the same folder, so I am looking for a way to instruct VS2005 to copy this dll into the build folder.
It would be nice if bzip2.dll could be embedded in Ice.dll, so that we could deal with a single assembly.
Regards.
Thanks
Unless you actually need protocol compression, no harm is done. If you do need it, simply put bzip2.dll into the system or windows directory, where it will be found.
See Dynamic-Link Library Search Order (Windows) for more information.
Cheers,
Michi.
Version from Ice-3.5.1\bin\x64 work fine on W7-64-Prof, W7-64-Corp but not work in W7-64-Home !
In Win7-64-Home work only bzip2.dll from Ice-3.5.1\bin !
why ?!
My client written С#, configured as "AnyCPU", other ice dll from Ice-3.5.1\Assemblies and Ice-3.5.1\bin\x64