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

Remoting Activation and Services...?

OK - I have a service that runs on a remote machine to monitor certain
file movements using the FileSystemWatcher class.
The service has an internal collection of the filename, time created
(if at all) and time file movced(if at all).

There is a class that holds these details thus:-

--------------------------------------------------------------------------
Public Class FileMovement

Public Filename As String

Public TimeCreated As DateTime

Public TimeMoved As DateTime

End Class
---------------------------------------------------------------------------

The service registers its ability to create these FileMovement things
thus:-

'--8< ----------------------------------
Dim Channel As New System.Runtime.Remoting.Chanels.HttpChannel(1912)
ChannelServices.RegisterChannel(Channel)

RemotingConfiguration.ApplicationName = "LogWatcher"
RemotingConfiguration.RegisterActivatedServiceType ( GetType(
FileMovement))
'--8<------------------------------------
Then the client app (which can be working on another machine) gets to
make a "FileMovement" thus:-

--------------------------------------------------------------
Dim foo As FileMovement = CType( Activator.GetObject(Type.GetType(
"Filemovement, object") , "http://" & _Servername &
":1912/LogWatcherService"), FileMovement)
-------------------------------------------------------------------
So - how do I do the last step ... get the LogWatcherService object to
create and return a FileMovement class?
Nov 21 '05 #1
0 785

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

Similar topics

3
by: Sunny | last post by:
Hi all, I'm creating client/server app in C# (VS. 2003). So, I need the client to call the server with some auth info (user and pass). If the auth is OK, server will do some work and will prepare...
5
by: Mark Broadbent | last post by:
Could someone clear this up for me a bit. I am a little bit uncertain about this but this is my understanding. Please correct where wrong or bits missing. There are two types of remoting :- ...
9
by: Nak | last post by:
Hi there, I have been messing around with remoting in an attempt to create a "shared application" as mentioned in another thread by that name. I have created a singleton object just like the...
13
by: Ron L | last post by:
I am working on an application that is a front-end for a SQL database. While it is not an immediate requirement, the application will probably be required to be able to connect via the internet at...
8
by: Raju Joseph | last post by:
Hi All, I am just trying to get an opinion here. I know this is always a tough choice to make. We are in the process of converting our VB6 based Healthcare Information System (a full-fledged...
0
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. ...
1
by: james.cssa | last post by:
When I try to compile the following program on Visual Studio 2005 Pro, the namespace System.Runtime.Remoting.Channels.Tcp is not recongized by the compiler. (The "Tcp" part is highlighted.) And I...
1
by: chandu | last post by:
any body give exact explanation on how CAO and SAO can be used in remoting application
6
by: Looch | last post by:
All, I currently have a windows application set up in a remote office that accesses data via web services. This is a generic web servies set up where the WebMethods exposed in an asmx file...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.