RE: Custom Exceptions in COM+

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ying-Shen Yu[MSFT] (v-yiy_at_online.microsoft.com)
Date: 04/20/04


Date: Tue, 20 Apr 2004 14:50:13 GMT

Hi ,

The ApplicationException seems caused by the CLR failed to resolve the type
of the Custom Exception, but I'm still unable to figure the cause of the
TargetInvocationException as you said it was resolved by registering the
assembly into GAC, it is deeply related with ServiceComponent
Implementation and the CLR Type loader system, there might be some
difference between the code path executed on your system and mine, due to
the complexity to investigate the cause of TargetInvocation issue, I
suggest you contact our Phone Service to get further assistance on this
issue,

About your another question : add the client proxy assembly into the GAC
automatically when installing the client proxy setup package.
In my test, the proxy assembly was added to the GAC of client machine
automatically during proxy installation.
You may confirm this behavior on your system.
If you mean install the install the shared assembly(the assembly contains
the custom exception) into GAC on the client machine during installation,
you need modify the MSI packages to archieve this,
the following KB article will show you how to edit Windows Installer
package using the Orca DataBase Editor.
HOWTO: Use the Orca Database Editor to Edit Windows Installer Files
http://support.microsoft.com/?id=255905
You may try embed the dcomcnfg generated MSI into a setup project MSI using
nested Installation:

HOWTO: Create a Nested .msi Package
http://support.microsoft.com/?id=306439

or extract the files and registry information from the dcomcnfg generated
MSI and inject it into your own setup project.

As I'm not very familiar with MSI setup issue, you may also post your
questions in
microsoft.public.platformsdk.msi group to see if the other community
members in that group have some ideas on it.
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.



Relevant Pages

  • Reinstalltion with setup project
    ... I use setup project in VS2005 and have many exe and dll files. ... create a new code for the setup I can reinstall the msi created in a PC ... meaning that new installation would actually install all ...
    (microsoft.public.dotnet.languages.csharp)
  • Setup Project
    ... I use VS 2005 and try to build a setup project. ... Before the end of the msi ... installation in the user's PC, I want it to run some exe which I put in the ... Mirs ...
    (microsoft.public.dotnet.languages.csharp)
  • setup project
    ... I have a setup project for an ASP.NET project. ... file in order to install additional components during the main installation. ... but no installation of the included *.msi file started. ... Nikolay Anestev ...
    (microsoft.public.dotnet.framework.setup)
  • Setup Project
    ... I use VS 2005 and try to build a setup project. ... Before the end of the msi ... installation in the user's PC, I want it to run some exe which I put in the ... "Application Folder". ...
    (microsoft.public.dotnet.languages.csharp)
  • VS .NET 2003 keeps reinstalling when using a transform to move shortcuts on start menu
    ... installation of Visual Studio .NET 2003 Pro. ... I get a working local installation on our Windows XP Pro SP1 ... The transform was generated using Wise Package Studio 4.62. ... Visual Studio MSI package). ...
    (microsoft.public.vsnet.setup)