November Happy Hour will be moved to Thursday December 5th.

Error with IdentityRegistrar

Vote:
 

I am trying to use the Commerce.Security.IdentityRegistrar with the CreateUser function, but when I call the code I am receiving an error that states "Constructor on type 'EPiServer.Cms.UI.AspNetIdentity.ApplicationUser' not found."

Has anybody tried to get the IdentityRegistrar working with StructureMap and ran into this error?  I am on version 10.2 currently.

#173679
Jan 04, 2017 20:19
Vote:
 

I hope this file will solve your issue: https://github.com/episerver/Quicksilver/blob/master/Sources/EPiServer.Reference.Commerce.Shared/Models/Identity/ApplicationUser.cs 

#173724
Jan 06, 2017 2:14
Vote:
 

Seems the method is looking for a constructor with username of ApplicationUser.  This should probably be registered as bug.  Workaround is to subclass ApplicationUser and add contructor with username.

#173750
Jan 08, 2017 14:39
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.