473,698 Members | 2,198 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 "Applicatio n 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.Enterpri seServices.Regi strationExcepti on: 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 1885
I was able to make this work. You need to add the assemblies to the GAC
programmaticall y. 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 "Applicatio n 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.Enterpri seServices.Regi strationExcepti on: 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
1332
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 server to do reads) Initially, serviced components and ASP.NET app were on two separated machines and components had server activation Since there is a substantial overhead in running serviced compoents as server (dllhost, interop, marchaling,...
4
1956
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 components. When I enable the SOAP service, I can access a WSDL link to every component in the application. What I would like to do is the following: Have a class A that is exposed through the SOAP service that provides getters for instances of...
4
2963
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 intent: Accept the COM or COM+ class name, function-name and input parameter (fixed string parameter) as string inputs and execute(invoke) the function at run time.
0
1134
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 assemblies A, B & C. C is dependent on both A & B. A and B are independent of B & C and A & C respectively. When I add either the primary output of C, or C's .dll to the
0
8676
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9164
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8898
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7734
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6524
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.