473,394 Members | 1,889 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,394 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 2099
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.