You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following raises StructureMap.Building.StructureMapBuildException with inner exception Object reference not set to an instance of an object. Debugging reveals this.User in 'AppController' is null:
public class HomeController : AppController
{
private IMyService service;
public HomeController(IMyService service)
{
this.service.User = this.CurrentUser;
}
}
Any idea why?
The text was updated successfully, but these errors were encountered:
Based on your post:
http://benfoster.io/blog/aspnet-identity-stripped-bare-mvc-part-1
The following raises
StructureMap.Building.StructureMapBuildException
with inner exceptionObject reference not set to an instance of an object
. Debugging revealsthis.User
in 'AppController' isnull
:Any idea why?
The text was updated successfully, but these errors were encountered: