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

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

Old forum URL: forums.lhotka.net/forums/t/10887.aspx


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?

Thanks.

JonnyBee replied on Wednesday, November 16, 2011

Hi

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

Copyright (c) Marimer LLC