By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,830 Members | 1,758 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,830 IT Pros & Developers. It's quick & easy.

Running application both locally and remotely?????

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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?

--
W.G. Ryan, MVP

www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"faktujaa" <fa******@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
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

Jul 21 '05 #2

P: n/a
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

"W.G. Ryan eMVP" wrote:
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?

--
W.G. Ryan, MVP

www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"faktujaa" <fa******@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
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


Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.