PC Review


Reply
Thread Tools Rate Thread

How can I read the channel port from app.config?

 
 
Jason Barnett
Guest
Posts: n/a
 
      23rd Apr 2009
I have created a server application and placed the remoting configuration in
the app.config file. The server application works great.

I'm now trying to create a client application that will actually reside in
the same directory as the server application. I'd like the client
application to determine its port from the server application's exe file.
I've tried using XmlDocument to open and navigate to the channel port, but
LoadXml throws an exception saying "Data at the root level is invalid". I
don't understand though, since the server application reads it fine.

I also tried opening the configuration file using ConfigurationManager, but
it doesn't seem to read any of the sections. There's no error, just no
information. Besides, I wouldn't know how to navigate to the channel port
that way, anyway.

Could someone point me in a useful direction, for getting the port number?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE Passive FTP Data Channel Port Allen Windows XP Internet Explorer 0 23rd Aug 2006 02:10 AM
IPC Channel failed, could not open port =?Utf-8?B?YW5vbnltb3Vz?= Microsoft Dot NET 0 5th Jun 2006 05:14 PM
LPT port has DMA channel? DSG Windows XP Hardware 3 4th Aug 2005 02:51 PM
Single & Dual Channel on Memory Config. Helob Asus Motherboards 3 31st Jan 2005 03:09 PM
How to config visual studio .net to read IIS port 8000 as default? Rudy Ko Microsoft Dot NET 1 27th Oct 2004 05:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:13 PM.