473,473 Members | 2,292 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Remoting NullReferenceException problem

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
8
by: Richard Bell | last post by:
I have a class in a seperate dll which I want to remote. I have referenced the class and registered it using a simple exe. I can connect to the class's interface using Activator.GetObject and call...
1
by: Samuel R. Neff | last post by:
We just started getting NullReferenceException in one of our applications on our demo server. This is occuring in a .NET Windows Service that is using binary remoting over TCP to talk to another...
0
by: Martijn Damen | last post by:
Hi, At the moment I am trying to develop an application that uses another app over .net remoting and having some problems with it (ok, that is ofcourse why I am here), hope somebody can shine a...
15
by: Ron L | last post by:
We are working on a distributed VB.Net application which will access a SQL database located on a known server. Each client will run on the user's local machine. To implement this, we are trying...
0
by: Tomislav Bartolin | last post by:
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...
1
by: fAnSKyer/C# newbie | last post by:
My remoting object lanched a thread, and in my server program, I created a remoting object, bind it in localhost, initialize it. This works fine. and In server program where I created the remoting...
1
by: vijaykumarairbee | last post by:
hi, i got this error when i access remote object using remoting "system.NullReferenceException:Object reference not set to an instance of an object" my code is here public void NetworkReset()...
0
by: William | last post by:
Hi I'm busy developing a .NET remoting application. Tcp remoting with a binary formatter is used. The user can specify on the client configuration whether to connect to the hosted Singleton or...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.