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------------------------
<configuratio n>
<system.runtime .remoting>
<application name = "HostServic e">
<service>
<wellknown
type="DOInforma tionLib.Product s,RemoteObject"
objectUri = "DOInformationL ib.Products"
mode = "Singleton"
/>
</service>
<channels>
<channel ref = "tcp server" port = "9000">
<serviceProvide rs>
<formatter ref = "binary"/>
</serviceProvider s>
</channel>
</channels>
</application>
<customErrors mode="Off">
</customErrors>
</system.runtime. remoting>
</configuration>
-----------------------------------------------------
my component under "DOInformationL ib" 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, 2 1666
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="DOInforma tionLib.Custome rs,RemoteObject " objectUri =
"DOInformationL ib.Products" mode = "Singleton" />
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni************* *@exisconsultin g.com
"wan2tri" <wa*********@ya hoo.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------------------------ <configuratio n> <system.runtime .remoting> <application name = "HostServic e"> <service> <wellknown type="DOInforma tionLib.Product s,RemoteObject" objectUri = "DOInformationL ib.Products" mode = "Singleton" /> </service> <channels> <channel ref = "tcp server" port = "9000"> <serviceProvide rs> <formatter ref = "binary"/> </serviceProvider s> </channel> </channels> </application> <customErrors mode="Off"> </customErrors> </system.runtime. remoting> </configuration> ----------------------------------------------------- my component under "DOInformationL ib" 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,
thanks, i tried it and it works,
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 2 : COM objects
Tier 3 : SQL Server 2000 DB
Flow is : ASP talks with COM objects and COM objects talks with DB
Scenario 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 over the internet, when the client tries to
use this second object by calling a property or method, the call hangs for
about 30 seconds then throws the following exception:
"A connection attempt failed because the connected party did not properly...
|
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 machine? I assume, perhaps
naively, that all the parts are there but I've spent several hours trying to
grasp how to go about accessing the remote server.
Specifically, I'm trying to create and populate databases on the remote
server from...
|
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 here as hyperlink.When I click that
link,
the page is redirected to server's login page.
This may be because my server application redirects to login page if any
other page is directly accessed.
|
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 are hosted by a third party (on
separate servers).
Since debug mode opens IE and loads my page from localhost, since the
database is located at a web URL, and since my development machine has an
always-on DSL connection, I'm hoping there's a way...
| |
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 updating the code-behind dll)
accessing any aspx page in the application causes the application
to run for the first time. Some of the initialization involves
reading and writing some text and xml files using simple streamreader
and streamwriter...
|
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 between the XML Web Service and
the host for the remote object. Within the host a port is defined and the
channel registered. It starts listening for requests. The destination port is
therefore clearly defined.
|
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 DBLINK? I hope I
was clear.
If there are more information that I need to supply, please do tell me.
Thank you very much for your replies
|
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 change that the application will be able to run on
any other machine (using \\ syntax on the run command- not a problem)
using the DB located on a static-different machine.
for this purpose I need to create a Remote Connection from my
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |