473,396 Members | 1,900 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,396 software developers and data experts.

Accessing two or more Remote object

hello, good day to all of you,

hi, im am new in .net , how can i access two or more
object remotely , because currently im only accessing one
object, windows services is the host, i have a
configuration file, on the host and on the client, but it
only support one object,

------host configuration file------------------------
<configuration>
<system.runtime.remoting>
<application name = "HostService">
<service>
<wellknown
type="DOInformationLib.Products,RemoteObject"
objectUri = "DOInformationLib.Products"
mode = "Singleton"
/>
</service>
<channels>
<channel ref = "tcp server" port = "9000">
<serviceProviders>
<formatter ref = "binary"/>
</serviceProviders>
</channel>
</channels>
</application>
<customErrors mode="Off">
</customErrors>
</system.runtime.remoting>
</configuration>
-----------------------------------------------------
my component under "DOInformationLib" object are Customers
and Products, currently i can access only the Products
component, because it is the only declared in the
configuration file, how can i add and use the Customers
component in the configuration file.
DO I HAVE TO ADD IT ON THE type or in the objecturi? HOW?
can somebody please help me and show me code in the
configuration for this problem, THANK,

Nov 15 '05 #1
2 1647
wan2tri,

You can add more objects to be remoted by adding another <wellknown>
element to the file right under the current one. This one would have the
Customer type, like this:

<wellknown type="DOInformationLib.Customers,RemoteObject" objectUri =
"DOInformationLib.Products" mode = "Singleton" />

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"wan2tri" <wa*********@yahoo.com> wrote in message
news:16****************************@phx.gbl...
hello, good day to all of you,

hi, im am new in .net , how can i access two or more
object remotely , because currently im only accessing one
object, windows services is the host, i have a
configuration file, on the host and on the client, but it
only support one object,

------host configuration file------------------------
<configuration>
<system.runtime.remoting>
<application name = "HostService">
<service>
<wellknown
type="DOInformationLib.Products,RemoteObject"
objectUri = "DOInformationLib.Products"
mode = "Singleton"
/>
</service>
<channels>
<channel ref = "tcp server" port = "9000">
<serviceProviders>
<formatter ref = "binary"/>
</serviceProviders>
</channel>
</channels>
</application>
<customErrors mode="Off">
</customErrors>
</system.runtime.remoting>
</configuration>
-----------------------------------------------------
my component under "DOInformationLib" object are Customers
and Products, currently i can access only the Products
component, because it is the only declared in the
configuration file, how can i add and use the Customers
component in the configuration file.
DO I HAVE TO ADD IT ON THE type or in the objecturi? HOW?
can somebody please help me and show me code in the
configuration for this problem, THANK,

Nov 15 '05 #2


thanks, i tried it and it works,

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jaydeep | last post by:
Hello, I am facing a strange problem. Problem accessing remote database from ASP using COM+ server application having VB components (ActiveX DLL) installed. Tier 1 : ASP front End (IIS 5.0) Tire...
1
by: Joel Lyons | last post by:
I have a remote object with a public property (see code below). A client can use this property to receive a ref to another remote object and use it's properties. This works great over a LAN, but...
2
by: Douglas Harber | last post by:
If I have DB2 8.1 (FP5, I believe, but not relevant to my question...I hope) installed on my desktop, do I have what I need to connect to a remote DB2 server (also running 8.1 FP5) from my desktop...
0
by: Kalyani | last post by:
Hi, I am using a web application as a server which uses Forms authentication. When I am trying to access a remote object (calling a method on it ) then I get output as "Obejct moved to here" with...
2
by: Jeff | last post by:
Hi - I have an ASP.NET web page accessing a SQL database. It works fine on the web, and I'm trying to get it to also work in debug mode in the IDE. The "on the web" page and my SQL database...
0
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or...
3
by: Fredric Ragnar | last post by:
Hi, I am making a prototype system with Remoting in the bottom of the system. An XML Web Service is using the remote object on an IIS to present data. I am using a TcpChannel for communicating...
3
by: Pakna | last post by:
Hello, I have what may be a beginner's question regarding DB2. How does one access a remote table on a remote database via SQL? What is the command string, is there an equivalent of Oracle...
4
by: Noy B | last post by:
Hi, I have developed a small application that is using a MSAccess DB. the problem is that it was developed on a machine where the application and the DB are both located. now it needs to be...
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
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.