Re: Getting Events, for Windows Service
From: Patrick Jox (Patrick_at_softwerk-n-o-s-p-a-m-technologies.com)
Date: 09/23/04
- Next message: Joseph_van: "Re: Problems with DAO/Jet"
- Previous message: Robert Jordan: "Re: Problems with DAO/Jet"
- In reply to: Ken Kolda: "Re: Getting Events, for Windows Service"
- Next in thread: Ken Kolda: "Re: Getting Events, for Windows Service"
- Reply: Ken Kolda: "Re: Getting Events, for Windows Service"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 23 Sep 2004 16:23:49 +0200
Typefilter was solving the problem on my local machine. But now if somebody
else tries to run my client app he gets an timeout error. This has nothing
to do with eventhandling but as I fear with my architecture.
The server application has a public object called logger, which is
instantiated during construction of the app (I use the standard
constructor). When I try to access one of its members using app.Logger.Name
or I try to register my event I get a "System.Net.Sockets.SocketException"
saying, that connection to the server failed, because the host is not
responding.
When I give my app a member app.LoggerName and let him do this work, it
works. So it seems that the logger is properly instantiated and works.
Do you have any suggestions?
Thanks - Patrick
"Ken Kolda" <ken.kolda@elliemae-nospamplease.com> schrieb im Newsbeitrag
news:%233pjZiNoEHA.1460@TK2MSFTNGP12.phx.gbl...
> Have you set the TypeFilterLevel on the client and server to be Full as in
> the following article?
>
> http://www.thinktecture.com/Resources/RemotingFAQ/Changes2003.html
>
> Ken
>
>
> "Patrick Jox" <Patrick@softwerk-n-o-s-p-a-m-technologies.com> wrote in
> message news:OTCgAGNoEHA.3792@TK2MSFTNGP11.phx.gbl...
> > Hello,
> > I am wondering if it makes sense to find a solution for the following
> task.
> > I know, that I can receive events from remote application and succeeded
> > already to follow some examples. But I need a very specific architecture
> and
> > would like to know, if this is generally possible:
> >
> > I have an application that resides and runs on a server as a windows
> > service. To configure this service I have a Windows Forms application on
a
> > client and now want to communicate with the remote application through a
> > TcpChannel. This works so far, but now I need to catch the events that
are
> > fired by the remote application to display working progress and other
> > information of the remote process.
> >
> > I have tested the event handling with a local instance of my business
> > object. It works fine.
> >
> > On the server I have an app object which is inherited from
> > MarshalByRefObject which provides different classes / objects. One of
this
> > classes the so called logger should raise an event whenever it writes
some
> > information and there must be a possibiltiy for the client to listen to
> this
> > event and to display what's going on on the server. When my logger
object
> is
> > not inherited from MarshalByRefObject, I can register my eventlistener,
> but
> > the events do never arrive to it.
> > When the logger class inherits MarshalByRefObject I get an error
> > (System.Security.SecurityException) when I try to register the listener.
> > Additional Information is "System.DelegateSerializationHolder and the
> > inherited classes can not be deserialized in this security level"
> >
> > I have not found any example with this specific constellation. Can
anybody
> > tell me if this can work, and possibly point me out some hints to get
the
> > events catched.
> >
> > Every hint would be mostly appreciated
> > Thanks a lot
> > Patrick
> >
> >
>
>
- Next message: Joseph_van: "Re: Problems with DAO/Jet"
- Previous message: Robert Jordan: "Re: Problems with DAO/Jet"
- In reply to: Ken Kolda: "Re: Getting Events, for Windows Service"
- Next in thread: Ken Kolda: "Re: Getting Events, for Windows Service"
- Reply: Ken Kolda: "Re: Getting Events, for Windows Service"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|