I wrote a little c# app to send SQL queries to a iSeries 830 and return
the results in a data grid.
Now I want to create a deployment program.
It's using the iSeries DB2 Provider for .NET which is part of a CD
install. The key DLL is:
ibm.data.db2.iseries.dll
I created a Setup program, and since ibm.data.db2.iseries.dll is part of
the references, the Setup project recognized that.
On compile, Setup created a directory containing:
Setup.exe
..msi
ibm.data.db2.iseries.dll
After installing on a /virgin/ machine, when running the application, an
error was thrown,
"System.TypeInitializationException: The type initializer for
"IBM.Data.DB2.iSeries.iDB2Constants" threw an exception. ---> An
unexpected exception occurred. Type: System.DllNotFoundException,
Message: Unable to load DLL (cwbdc.dll)."
I tried to manually register the DLL but regsvr32 reported:
"IBM.Data.DB2.iSeries.dll was loaded, but the DLLRegisterServer entry
point was not found."
Questions:
It looks like not all the needed components to install were put into the
setup program. How can I take care of this?
Does a Setup Program automatically find all the needed components and
their DLL dependencies?
Do I need an MSM file instead?
--
Texeme
http://texeme.com
incognito () Updated Almost Daily
http://kentpsychedelic.blogspot.com