Hi there, I'm new to csla and I'm struggling. Yeah, I really am! I'm dutch and have a lot of experience on Office-development (Access, Excel), BI (SQL2005) and a little on dotnet. I read the csla 2.0 book for the better part and didn't grasp it all but got the concepts, I think. The technical dotnet-stuff (=hard for me) is what I try to learn by examining the PTracker-project.
My configuration is SQL2005 Developer (no Express!) and Windows XP Dutch. I tried to follow the instructions in http://www.lhotka.net/files/csla20/BuildCsla.pdf but the PTWeb-project is giving me a hard time. I got the PTWin-project running after some time but with the PTWeb-project I don't now where to look. The error message I get is down here. Can anyone give me a clou? I think it has to do with 6a of the instruction...
thanks in advance, Leon
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. Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 190: if (proxy.IsServerRemote)
Line 191: ApplicationContext.SetGlobalContext(result.GlobalContext);
Line 192: throw new DataPortalException(
Line 193: String.Format("DataPortal.Fetch {0} ({1})", Resources.Failed, ex.InnerException.InnerException),
Line 194: ex.InnerException, result.ReturnObject);
Source File: C:\CSLA\csla20cs\Csla\DataPortal\Client\DataPortal.cs Line: 192
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
[CallMethodException: DataPortal_Fetch methode aanroepen mislukt]
[DataPortalException: DataPortal.Fetch mislukt (System.NullReferenceException: Object reference not set to an instance of an object.
at ProjectTracker.Library.Database.get_PTrackerConnection() in C:\CSLA\ProjectTracker20cs\ProjectTracker.Library\Database.cs:line 14
at ProjectTracker.Library.ResourceList.DataPortal_Fetch(Criteria criteria) in C:\CSLA\ProjectTracker20cs\ProjectTracker.Library\ResourceList.cs:line 34)]
Csla.DataPortal.Fetch(Type objectType, Object criteria) in C:\CSLA\csla20cs\Csla\DataPortal\Client\DataPortal.cs:192
Csla.DataPortal.Fetch(Object criteria) in C:\CSLA\csla20cs\Csla\DataPortal\Client\DataPortal.cs:140
ProjectTracker.Library.ResourceList.GetResourceList() in C:\CSLA\ProjectTracker20cs\ProjectTracker.Library\ResourceList.cs:17
ResourceList.GetResourceList() in c:\CSLA\ProjectTracker20cs\www\PTWeb\ResourceList.aspx.cs:81
ResourceList.ResourceListDataSource_SelectObject(Object sender, SelectObjectArgs e) in c:\CSLA\ProjectTracker20cs\www\PTWeb\ResourceList.aspx.cs:70
Csla.Web.CslaDataSource.OnSelectObject(SelectObjectArgs e) in C:\CSLA\csla20cs\Csla\Web\CslaDataSource.cs:180
Csla.Web.CslaDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) in C:\CSLA\csla20cs\Csla\Web\CslaDataSourceView.cs:93
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
System.Web.UI.WebControls.GridView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +41
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
Nobody has a clue???
gr Leon
I've got the same error message.
There is more discussion on the same topic here: http://forums.lhotka.net/forums/thread/13015.aspx
Unfortunately, there is no resolution.
Copyright (c) Marimer LLC