StructureMap.MVC5 automatically uses the convention IMyClass and MyClass to DI Resolution. No other configuration is required after adding StructureMap.MVC5 from Nuget. It just works. However ASP.NET Identity does not follow this convention of IMyClass and MyClass.
You will see this exception ""no default instance is registered and cannot be automatically determined for type 'IUserstore" because structure map cannot resolve to require instance
A workaround is request StructureMap.MVC5 to please use default constructor by adding the DefaultContructor attribute of StructureMap as below in the account controller.
public class AccountController : Controller
{
private ApplicationSignInManager _signInManager;
private ApplicationUserManager _userManager;
[DefaultConstructor] //This is the attribute you need to add on the constructor
public AccountController()
{
}
// Other implementations here..........
}