Re: Getting Events, for Windows Service

From: Patrick Jox (Patrick_at_softwerk-n-o-s-p-a-m-technologies.com)
Date: 09/23/04


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
> >
> >
>
>



Relevant Pages

  • RE: Using kerberosSecurity Throws Security Exception
    ... I am experiencing this error while trying to use a Windows XP client ... application to access a web service located on a W2k3 server. ... client app on the server, ... > Account with a Custom Principal Name using SetSPN.exe utility. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Questions about Remoting, objects, threading. lease lifetime and object cleanup, and a couple of
    ... so long as the Client app is ... always refering to the same server object. ... it sets its ClassOne object to nothing and goes away. ... >>The client app at some point is going to become an ASP.Net app also. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Remoting or windows service
    ... Thanks for writing up such a decent overview of the remoting dev process ... the client and the server. ... > 2) Implement this class in the server app and say that it can be accessed ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Schannel and Session Renegotiation
    ... Schannel does not support the server sending app ... We are discussing the option of providing support for the client blowing off ...
    (microsoft.public.platformsdk.security)
  • Re: logging via SocketHandler and TCPserver
    ... continue to use my home-grown logger that I've been using for years. ... LogRecordStreamHandler.handle and it never breaks out (until I kill the client). ... You can make the server quit by changing the logic ...
    (comp.lang.python)

Loading