473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Running application both locally and remotely?????

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
2 2098
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Tobias Nilsson | last post by:
I have almost exactly the same problem as the guy below. Is it NOT possible running .NET code locally in Internet Explorer WITHOUT a webserver???? / Tobias --------- My company has in the...
0
by: faktujaa | last post by:
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...
8
by: Shalini | last post by:
If I have an ASPX page that is just sleeping for 3 minutes ormore and later does some processing and the ExecutionTimeout parameter in the machine.config is 90 seconds then the page does not...
2
by: Evan Camilleri | last post by:
how can I create a web application remotely? i have access to a server and would like to create a web-application in a folder - if it is my IIS then i right click, properties and press create...
3
by: Wayne Gibson | last post by:
Hi, Is it possible to determine what web server is running a website, if so how? Also is it possible to determine if the web site is running locally or remotely. Thanks Wayne
2
by: faktujaa | last post by:
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...
3
by: James Stroud | last post by:
Hello All, I am helping someone write a python script to run their DOS application through an SSH terminal. It seems that this program wants to access a DOS shell and send output there. If...
4
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients...
0
by: sunrt | last post by:
We have an As400 system that has program which executes batch files which resides on the SQL server 7.0 computer . Those batch files run SQL server jobs using isql. The whole idea about this is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.