Setup and Deployment Project Problems
- From: "Jeff Winn" <jwinn@xxxxxxxxxx>
- Date: Wed, 25 Jun 2008 00:47:27 -0400
Hello!
I've been having problems with the installer package I've created. Here's the scenario - I have 3 assemblies, the service.exe, core.dll, and remoting.dll in the project. All of these assemblies are being placed into the target folder via the project output. The core.dll and remoting.dll are also both being placed into the GAC.
Inside of the service.exe are some custom installer actions which don't have any problems by themselves. I start having problems when trying to access a custom ConfigurationSection that is contained inside the core.dll while the assemblies are being installed. Regardless which event I place the call to load the configuration section from the exe.config file (Install, BeforeInstall, Committed, Committing, etc) inside the service.exe's installer I keep getting problems that the installer cannot find the appropriate assembly.
At one point I placed the code to modify the exe.config from within the Committed event and when the installer ran it told me that it could not convert CustomConfigSection to CustomConfigSection. I checked the codebase path of the assembly it had loaded, and it was from the copy registered in the GAC. If i removed the copy being installed into the target folder, a generic exception gets thrown indicating that the CustomConfigSection type could not be located. I'm guessing when the core.dll and remoting.dll are installed in both locations the installer is trying to load the copy within the GAC and testing it against the local copy.
Does anyone know how to use an assembly that was registered in the GAC inside an Installer used by an executable that was installed by the same package? Maybe I'm just getting the order wrong and i'm trying to access the CustomConfigSection in the wrong event. Oh, also I do have the custom installer action mapped to the service.exe in the custom actions in the project.
Any help would be greatly appreciated, thanks!
-Jeff
.
- Prev by Date: VS 2008 + Emacs Scheme + Selection Overwriting
- Next by Date: VS2008 hangs when building and I right click for Intellisense
- Previous by thread: VS 2008 + Emacs Scheme + Selection Overwriting
- Next by thread: VS2008 hangs when building and I right click for Intellisense
- Index(es):
Relevant Pages
|
Loading