Error in new Asp.net core MVC app #4375
-
| 
         I'm getting an exception on startup from builder.Build(); here is the code: I had originally added Csla.Web.Mvc5, which seemed to work, but realized that's not the right package for Asp.net Core Mvc, so removed it and added Csla.AspNetCore package. Now I get this exception: 
 Any ideas? Using .Net 8, latest Csla 8 for everything.  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
| 
         I think you need to add  | 
  
Beta Was this translation helpful? Give feedback.
I think you need to add
builder.Services.AddHttpContextAccessor()so the accessor is registered.