Deployment with Serviced Components Question

G

Guest

Hi,

I am trying to create a Setup and Deployment project for a Serviced
Component. In my solution I have two projects. The first is the class
library that contains my serviced component as well as an installer class.
The second is the setup and deployment project.

I have added the "Global Assembly Cache Folder" to the "File System on
Target Machine". I then copied the files in the "Application Folder" into
the "Global Assembly Cache Folder". Next I opened the Custom Actions tab and
added the installer to the "Install" folder. The build works fine. When I
run the installer it fails and the error log gives me this message:

System.EnterpriseServices.RegistrationException: SOAP Publication failed
because a required assembly is not in the GAC.

My issue is, I need the .dll to be installed in the GAC before the Serviced
Component is registered. I have not found a way to do this. Any thoughts?

Thanks in advance.

-Pete
 
G

Guest

I was able to make this work. You need to add the assemblies to the GAC
programmatically. I followed this link and downloaded the code.

http://www.c-sharpcorner.com/Upload...rticleID=723764a8-d6be-4215-85eb-496261d81367

I added the FusionInstaller.cs class to my project and then made the
appropriate calls within my custom action. This is the only way I was able
to make this work.

I could not find a way using deferred execution custom actions and
sequencing with Orca, or any way to do this through Visual Studio. If anyone
knows of another way to accomplish this please let me know. I'd be
interested to hear it.

Hope this helps.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top