473,385 Members | 1,341 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1111

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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.