Running application both locally and remotely?????

G

Guest

Hi,
I have created an application that uses IIS to host remote components. All
the remote components are listed in app.config in client and web.config in
server. Now the app.config can contain either localhost name/IP address to
point to
remote component like <wellknown type="XYZ, XYZ"
url="http://localhost:80/XYZ" />. Remoting configuration is done using
RemotingConfiguration.Configure("XYZ.exe.config") in application's main
method. Now abt the problem. We want this application to run both locally as
well as remotely. So during setup we ask the user the local and remote
computer name. But to make this work we should have two app.config files each
containing its own computer name. Is it possible???? Or is there any othe way
to do this????
Please help.
Thanks in advance,
faktujaa
 
W

W.G. Ryan eMVP

I'm not sure I understand the problem. If you want it to run remotely and
locally and you create an instance of a Foo - what's making the
determination as to where to get the Foo From, local or remote?
 
G

Guest

Hi Ryan,
Let me explain you my problem in detail.
1. Create remoting application. Host ur DLLs in IIS.
2. Client side exe will have app.config that will contain the IIS path.
3. Create one connection info file(xml) that will store the connection
information - like remote server name, database name, etc.
4. Create a setup program that would also create the above app.config file
and connection info file based on the information supplied by the user.
Please understand here that the connection info file will contain both the
local and remote server name if the user wants to run the application both
locally and remotely. (User is given the options (Client/Server/Both).
5. Setup program will create two icons if the user clicks both as an option
during installation.
6. Based on the icon clicked(Local/Remote), system has to connect to the IIS
based on the app.config information and remote server name from the
connection info file.
Local/Remote is determined based on the command line arguments passed during
invocation.
7. Now my problem: Though i have configured the connection info by storing
it in connection info file. But how do i make the app.config file dynamic to
take the IIS server name based on the command line argument. Hope u got it
now. Please let me know what u didn't get???
Please help!!!!!!!!!!!!!!!!
faktujaa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top