PC Review


Reply
Thread Tools Rate Thread

Deployment with Serviced Components Question

 
 
=?Utf-8?B?UGV0ZSBXaXR0aWc=?=
Guest
Posts: n/a
 
      16th Jun 2006
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZSBXaXR0aWc=?=
Guest
Posts: n/a
 
      21st Jun 2006
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/UploadF...b-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

"Pete Wittig" wrote:

> 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

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while invoking the COM+ components developed using .Net (Serviced Components) Praveen Chandra Microsoft Dot NET 4 21st Jun 2006 07:47 AM
Serviced Components & SOAP =?Utf-8?B?UGV0ZSBXaXR0aWc=?= Microsoft C# .NET 4 30th May 2006 07:47 PM
project with serviced components and non services components z f Microsoft ADO .NET 4 6th Oct 2005 02:14 PM
Serviced components? Vai2000 Microsoft C# .NET 3 6th May 2004 11:36 AM
Serviced components or not? Erik Cruz Microsoft Dot NET 0 3rd Jan 2004 03:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:34 AM.