ProjectTracker blazor server - dal is null #2599
-
Hello, Long time CSLA user, first time Blazor user. Downloaded CSLA 5.5.1 and opened the ProjectTracker solution and configure ProjectTracker.Ui.Blazor.Server +AppServer as startup.
The downloaded code uses the in-proc data portal by default with remote data portal server commented out so I guess there is not requirement to startup the AppServer. On application start get exception- System.NullReferenceException If I change the code to use the data portal it works with the already logged issue on authentication - Unable to cast object of type 'Csla.Security.UnauthenticatedPrincipal' to type 'System.Security.Claims.ClaimsPrincipal'. What am I missing to get the in-proc data portal working? Thanks, Geco. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, I suggest you start with the BlazorExample project first, because it is simpler than ProjectTracker, and it sounds like you are trying to get into Blazor, so that might be a better start point. Sadly, CSLA 5 has issues with server-side Blazor. Those issues are being addressed in CSLA 6, because the fix is very deep and requires breaking changes. I discuss them in some depth in this thread: #2595 |
Beta Was this translation helpful? Give feedback.
Hi,
I suggest you start with the BlazorExample project first, because it is simpler than ProjectTracker, and it sounds like you are trying to get into Blazor, so that might be a better start point.
Sadly, CSLA 5 has issues with server-side Blazor. Those issues are being addressed in CSLA 6, because the fix is very deep and requires breaking changes. I discuss them in some depth in this thread: #2595