I write applications for web farms and I wanted to create a simple peer network between server applications so they could pass messages to each other. For example, to coordinate when dropping cache items, or to increment a shared counter to have a better shared view of a crucial statistic.
But apparently this isn't possible. I had peer-to-peer code working perfectly in a console application, but when I added the code to an ASP.NET website I got the following error:
System event notifications are not supported under the current context. Server processes, for example, may not support global system event notifications.
[InvalidOperationException: System event notifications are not supported under the current context. Server processes, for example, may not support global system event notifications.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +10259418
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +539
// My code here where I call the proxy object's method to start the WCF call
Um, why not? It seems like this would be supremely useful!
Is there any way to get around this?