Mark
2010-04-14 21:34:06 UTC
Hi...
We've got a 3rd party assembly (dtSearchNetApi2.dll) that some of our code
depends on. We're using Visual Studio 2005 to build. Recently I got an x64
box so I've been trying to build our software x64.
Turns out dtSearchNetApi2.dll depends on some native-mode assemblies like
the msvcr80.dll.
When I build in Debug|x64, it builds fine, as I would expect (Visual Studio
having all the dlls). When I switch to Release|x64, I get binding failures
on dtSearchNetApi2.dll - the usual "An attempt was made to load a program
with an incorrect format." error...
On their website, they list some of the packages they depend on and point to
a redist package for download. Looking in my C:\Windows\winsxs directory, I
see packages with *almost* the same signature - e.g.
amd64_microsoft.vc80.atl_1fc8b3b9a1e18e3b_8.0.50727.4053_none_8a1a02152edb659b
vs
amd64_Microsoft.VC80.ATL_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_79404cdd
(in the list on http://support.microsoft.com/kb/973544/)
a) Why is it working fine on Debug|x64 and not on Release|x64?
b) How do I tell which native dll it's not finding in Release|x64?
Thanks
Mark
We've got a 3rd party assembly (dtSearchNetApi2.dll) that some of our code
depends on. We're using Visual Studio 2005 to build. Recently I got an x64
box so I've been trying to build our software x64.
Turns out dtSearchNetApi2.dll depends on some native-mode assemblies like
the msvcr80.dll.
When I build in Debug|x64, it builds fine, as I would expect (Visual Studio
having all the dlls). When I switch to Release|x64, I get binding failures
on dtSearchNetApi2.dll - the usual "An attempt was made to load a program
with an incorrect format." error...
On their website, they list some of the packages they depend on and point to
a redist package for download. Looking in my C:\Windows\winsxs directory, I
see packages with *almost* the same signature - e.g.
amd64_microsoft.vc80.atl_1fc8b3b9a1e18e3b_8.0.50727.4053_none_8a1a02152edb659b
vs
amd64_Microsoft.VC80.ATL_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_79404cdd
(in the list on http://support.microsoft.com/kb/973544/)
a) Why is it working fine on Debug|x64 and not on Release|x64?
b) How do I tell which native dll it's not finding in Release|x64?
Thanks
Mark