Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 112947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:37:30+00:00 2026-05-11T02:37:30+00:00

I have a serviced component installed in a COM+ server application. I want to

  • 0

I have a serviced component installed in a COM+ server application. I want to create an instance from a remote client. The client needs to be able to specify the server machine’s name dynamically. How do I do this?

I tried using Activator:

            (XSLTransComponent.XSLTransformer)Activator.GetObject(                         typeof(XSLTransComponent.XSLTransformer),                         serverName                         ); 

But I get this:

System.Runtime.Remoting.RemotingException: Cannot create channel sink to connect to URL ‘server’. An appropriate channel has probably not been registered. at System.Runtime.Remoting.RemotingServices.Unmarshal(Type classToProxy, String url, Object data)

Do I need to register a channel? If so, how?

Another idea is to use Marshall.BindToMoniker, but how do I specify a moniker for a remote object hosted on COM+ on server x?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:37:30+00:00Added an answer on May 11, 2026 at 2:37 am

    Eureka! This works:

    string serverName = serverTextBox.Text; Type remote = Type.GetTypeFromProgID('XSLTransComponent.XSLTransformer', serverName); return (XSLTransComponent.XSLTransformer)Activator.CreateInstance(remote); 

    Thanks to this question

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a COM dll that is working fine as an in-proc server and
I have a windows service (actually a serviced component) implemented in native C++. I
Since CS3 doesn't have a web service component, as previous versions had, is there
I have a .net assembly that has a COM+ ServicedCopmonent in it and at
I have a web application developed with ASP.net and C# that is running on
i have a web service that reads data from excel using Microsoft.Office.Interop.Excel. It works
I have a classic ASP website (yes they still exist) that needs to call
I have created just a simple web service as a console application. It works
I am creating a new WebSite whenever Feature A or B is installed: <Component
I have a .NET assembly that contains classes to be registered as ServicedComponent through

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.