By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,474 Members | 1,283 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,474 IT Pros & Developers. It's quick & easy.

Remoting NullReferenceException problem

P: n/a
Hi,

I have a singleton and a singlecall MBR objects hosted by IIS.
Singleton object can be activated either by the singlecall object or by the
remote client application.
I want the singleton object to stay active for an infinite amount of time
so I've overriden its InitializeLifetimeService function and return nothing.
This works just fine, well, almost.
The problem is that after some time of inactivity from the client app (it
appears to be about 15 minutes) I get
a System.NullReferenceException from system.dll which I cannot debug.
Call stack says: ">
system.dll!System.Net.Sockets.OverlappedAsyncResul t.CompletionPortCallback(u
int errorCode = 64, uint numBytes = 0, System.Threading.NativeOverlapped*
nativeOverlapped = 1718520) + 0xa0 bytes ".
After that client app stops responding and freezes. Application doesn't use
any events or callbacks.
I'm using HTTP channel with binary formatter, which is set in web.config
file like this:
<channels>
<channel ref="http"/>
</channels>

And in remote client app like this:

Dim chanProps As New ListDictionary
chanProps("name") = "httpbinchan"
Dim chan As New HttpChannel(chanProps, New
BinaryClientFormatterSinkProvider, New BinaryServerFormatterSinkProvider)
ChannelServices.RegisterChannel(chan)

Am I missing something here ?
Any help in getting rid of this unwanted "feature" would be greatly
appreciated.
Thanks

--
Bartol
--
Remove "TB" from address to reply
Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.