473,322 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Deployment with Serviced Components Question

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
Jun 16 '06 #1
1 1864
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

Jun 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Stan | last post by:
I wasn't sure what would be the best ng to post it. We have ASP.NET app that uses serviced component to perform all database writes and updates (there are separate components sitting on the web...
4
by: Pete Wittig | last post by:
Hello, I am creating an app using Serviced Components and I am exposing them using the Enterprise Services SOAP service. Here is my problem: I have one COM+ application with several serviced...
4
by: Praveen Chandra | last post by:
Hi, I just wanted to put down the issue with more detailed information so that you can help us get to the right Microsoft resource for a solution! Here is the problem description... Our...
0
by: Pete Wittig | last post by:
Hi, I am working in VS2005. I have a solution with four projects. One is a setup and deployment project the other three contain various Serviced Components. Let's call the Serviced Component...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.