Skip to content

Installing a .NET 4.6.1 COM+ App - failed to register DLL #6817

Discussion options

You must be logged in to vote

I ended up writing my own custom actions using the COM+ COM API. I'll leave the code here in case it's useful to someone.

    [CustomAction]
    public static ActionResult RemoveComPlusApplication(Session session)
    {
      var catalog = new COMAdminCatalog();
      var collection = (COMAdminCatalogCollection)catalog.GetCollection("Applications");
      collection.Populate();

      for (var i = 0; i < collection.Count; i++)
      {
        var application = (COMAdminCatalogObject)collection.Item[i];

        if (application.Name == "My Application")
        {
          session.Log($"Removing COM+ application {application.Name}");
          collection.Remove(i);
        }
      }

      c…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rseanhall
Comment options

@JohnLudlow
Comment options

Answer selected by JohnLudlow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants