W
wobbles
Hi Everyone,
I have a server which reads information from a "server.exe.config"
file and a client that also reads from its "client.exe.config" file.
If the server location or the port number changes I'd like to write
(using streamwriter) a new config file for the client app.
So I have a few questions:
1. Is "writing" my own config file (for the client) a bad approach. If
so, why? What's a better approach?
2. How can I find out which port number my service is using? I'd like
my server-app to know this so that it can write the appropriate config
file for the client.
I've been googling (on q.2) for a while now but found nothing useful.
Thanks!
wobbles
I have a server which reads information from a "server.exe.config"
file and a client that also reads from its "client.exe.config" file.
If the server location or the port number changes I'd like to write
(using streamwriter) a new config file for the client app.
So I have a few questions:
1. Is "writing" my own config file (for the client) a bad approach. If
so, why? What's a better approach?
2. How can I find out which port number my service is using? I'd like
my server-app to know this so that it can write the appropriate config
file for the client.
I've been googling (on q.2) for a while now but found nothing useful.
Thanks!
wobbles