NullReferenceException at DataAccessl.Sql.DalManager..ctor()

NullReferenceException at DataAccessl.Sql.DalManager..ctor()

Old forum URL:

TSF posted on Wednesday, November 16, 2011

I'm getting a NullReferenceException from the WcfPortal occasionally when calling a Fetch occurs on the remote server.  At the most inner exception, I see the following:

Object reference not set to an instance of an object.
at MyNamespace.DataAccess.Sql.DalManager..ctor()
Exception has been thrown by the target of an invocation.

What may be contributing to this is that I have a DispatcherTimer in my VM that calls the BeginRefresh method every few seconds.  I don't recall getting this error before introducing these automatic fetches via the timer.  But I'm not sure where to look.  What does the reference to .ctor() mean?


JonnyBee replied on Wednesday, November 16, 2011


The ctor means the constructor of your class. Look at the stacktrace and the code in your DalManager class.

Copyright (c) Marimer LLC