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

  • Home
  • SEARCH
  • 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 3397536
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:32:26+00:00 2026-05-18T04:32:26+00:00

My application calls RemotingConfiguration.Configure() to set up .NET Remoting. But since I need the

  • 0

My application calls RemotingConfiguration.Configure() to set up .NET Remoting. But since I need the portName attribute of the channels element to be different each time the application is run, I have to configure this particular setting programatically.

It sounds very simple (and probably is – but I’ve been searching Google all day for an answer).

So far I have:

RemotingConfiguration.Configure(Program.ConfigFilePath, false);

IChannel[] regChans = ChannelServices.RegisteredChannels;
IpcChannel ipcChannel = (IpcChannel)ChannelServices.GetChannel(regChans[0].ChannelName);

The debugger shows me that ipcChannel._serverChannel._prop would be the hash table to which I need to add an entry such as ["portName"] = uniquePortName, but I simply cannot see how to access and modify this.

I know I could always scrap the *.config file and do the whole thing programatically, but I really don’t want to throw away the benefits of having most of the settings easily editable.

Is it too late to modify an IpcClientChannel object once RemotingConfiguration.Configure() has returned? Obviously I could probably write my own version of RemotingConfiguration.Configure(), but that doesn’t seem like the Right Way to do things either.

  • 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. Editorial Team
    Editorial Team
    2026-05-18T04:32:27+00:00Added an answer on May 18, 2026 at 4:32 am

    I think I’ve established that what I wanted to do is not possible.

    You can either use RemotingConfiguration.Configure() or something like:

      IDictionary channelProperties = new Hashtable();
      channelProperties.Add("authorizedGroup", "Everyone");
      channelProperties.Add("portName", "Client-" + Guid.NewGuid().ToString()); // Unique port name
      IpcChannel channel = new IpcChannel(channelProperties, null, null);
      ChannelServices.RegisterChannel(channel);
    

    You can’t mix and match. At least, that seems to be the case.

    (Of course you can still read any of these settings from the *.config file, but the point is you have to explicitly code for all of the options you might want to support.)

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

Sidebar

Related Questions

I have an ASP.NET application that calls other web services through SSL (outside the
I am writing a .NET Remoting application. I have my dll, server, and client
.Net application calls Stored Procedure and returns collection which is stored as 'result.' I
A .NET application calls C dll. The C code allocates memory for a char
I write extensions for a 3rd party application. The application calls my class libraries.
I have an application that calls a number stored by the user. Everything works
I have a C# application that calls a stored procedure that produces an xml
I have created an android application that calls (using kSOAP library) a SOAP based
I have a function in my application that calls various subfunctions depending on the
Hi i have a WP7 application that calls a wcf who runs with membership

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.