charlot

charlot

  • NA
  • 1
  • 0

.net remoting with webForm clients which have to react of an event fired by the server

Jul 26 2005 5:46 AM

I have a big question for .Net Remoting pros:

 

I use a remote server which watch files and detect when modifications become. The server is a winForm. Then, I have Web clients which subscribe to the event "file modification" and have to do some work when the event fired.

- The remote configuration is ok because if I declare a simple function in the interface (link between server and clients), clients have access to this function and it work well.

- The problem is when the event fired, clients don't execute the code I put in the corresponding method in the WebForm. When I execute with the debug mode, I see that it enter well in the method and execute the code I put into but nothing happens. For exemple, I just test with displaying a message in a textbox when the event fired. 
The webClients enter well in the receiveevent function, execute the corresponding code line, but there is nothing in the textbox.
 
I understood this is because it's the IIS which calls and react at the event and not the html page, the clients. In fact, if I tranform my web clients in WinForm clients, it works well: the code is really executed.

 

But I don't know what I have to do and I'm very tired and my brain too. Because I have searched on the Web for a week, 8 hours per day and I didn't find anything. There are all .Net remoting solution except this case: Web clients which subscribe to event fired by a server application. There are Web clients which communicate with a server but without event or WinForm clients with event.

So I really need some help, please... I will be very grateful about your help. Tell me if there are information lacks in my explication.