Object reference not set to an instance of an object

Object reference not set to an instance of an object

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


ata posted on Wednesday, December 19, 2007

Hi,

I am new to CSLA. I tried to set up the sample project and I got this error message:

Server Error in '/PTWeb' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 186:        ApplicationContext.SetGlobalContext(result.GlobalContext)
Line 187:      End If
Line 188:      Throw New DataPortalException( _
Line 189:        String.Format("DataPortal.Fetch {0} ({1})", My.Resources.Failed, ex.InnerException.InnerException), _
Line 190:        ex.InnerException, result.ReturnObject)

Source File: D:\WebSites\CSLA\csla20vb\Csla\DataPortal\Client\DataPortal.vb    Line: 188

Thanks in advance...

RockfordLhotka replied on Wednesday, December 19, 2007

Did you follow the instructions available as a PDF from www.lhotka.net/cslanet/download.aspx?

ata replied on Thursday, December 20, 2007

Yes I did...

Copyright (c) Marimer LLC