Setup and Deployment Project Problems



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

.



Relevant Pages

  • Re: .NET versioning
    ... If you don't use the GAC, ... >> The key part here is 'installer'. ... behind singed assemblies and what not but others out there don't. ... shouldn't release policy files for their ODP.NET assemblies. ...
    (microsoft.public.dotnet.framework)
  • Re: Using installer classes
    ... I don't reference any custom GAC assembly in my installer classes, however, I ... do reference local copy assemblies. ...
    (microsoft.public.dotnet.framework)
  • Re: Installer puts assemblies in GAC, but app doesnt see them and other oddities
    ... Assemblies aren't committed into the GAC ... places 3 .dlls in the GAC, and then it launches my app, which complains ... I have previously written an installer for this same app, ...
    (microsoft.public.vsnet.general)
  • Re: How I add a Assembly to the gac in a installer proyect
    ... how it works if you want to replace your assembly in the GAC with a new one. ... so then you need policy assemblies in the GAC. ... of what DLL Hell was all about. ... Definitive Guide to Windows Installer ...
    (microsoft.public.dotnet.framework.setup)
  • RE: installer woes (MSI generated by VS.NET 2003)
    ... an upgrade executes previous custom actions. ... >addition, during installation, Setup creates registry subkeys, sets ... >have custom actions for Setup that are run within the Installer class. ... >assemblies within that, but it threw a deserialization exception. ...
    (microsoft.public.vsnet.general)

Loading