| Shawnathan 2005-02-16, 8:57 pm |
| I'm developing a C# application in .NET 2003 using COM objects. The
application runs great so I decided to use the 'Windows Installer' to deploy
the application. I created a new 'SetUp Project'. Upon 'build' of the new
SetUp project I got a warning ' The following files may have dependencies
that cannot be determined automatically. Please confirm that add dependencies
have been added to the project.' There was a long list so I grabbed a screen
shot, clicked 'Ok' and continuted. After adding all dependencies listed from
the screens shot I 'rebuilt' with no errors and installed. The install worked
flawlessly. On run from the installed .exe I get the following error: "An
unhandled exception of type 'System.Io.FileNotFound' exception. Additonal
information: File or assembly name Interop.LTRASTERDLGKRNLib, or one of its
dependencies was not found.' Alright I think to myself. I take a look at the
dependencies for Interop.LTRASTERDLGKRNLib, there are 3. LRTDK14N.dll was
placed in system32 on install, the second was mscorlib and the third was
stdole. I checked for dependencies for mscorlib, there were none. I checked
for dependencies for stdole there was one which turned out to be mscorlib
which showed up in the list with a yellow exclamation mark next to it. Now,
other Interop.'s in the application also reference mscorlib BUT they
reference version 1.0.5000 of mscorlib. stdole, with the yellow exclamation
point next to it, references mscorlib version 1.0.3300. I took a look at the
list of assemblies in the assemply cache (GAC) using the Microsoft .NET
Framework 1.1 Configuration tool. stdole appears with version number
7.0.3300.0 mscorlib appears with version number 1.0.5000.0 The C# .NET 2003
application I am trying to create a 'Windows Installer' for is referencing
stdole AND on build the stdole is dependent on the wrong version of mscorlib
(ver 1.0.3000 NOT ver 1.0.5000). I tried removing the reference and readding
it, no luck.
How do I get the stdole assembly to 'depend' on the right version of
mscorlib (ver 1.0.5000 on my machine) so I can create a 'Windows installer'
for this application?
|