Hi All,
I have this code to make a new user from an import. It worked fine on a previous version (8.2something)
In 8.3.0.5 I get
SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.
on user.save();
Am I missing something? Values in comments are from log, just before save...
(user is Dynamicweb.Modules.UserManagement.User):
var user = new User(); user.Password = autoGenerated(); // zZN6hh1r user.UserName = ADentry.username; // mej user.ValidFrom = DateTime.Now; // 20-12-2013 13:51:00 user.ValidTo = DateTime.Now.AddYears(50); // 20-12-2063 13:51:00 user.Name = ADentry.fullname; // Morten Erik Jensen if (!String.IsNullOrEmpty(ADentry.email)) { user.Email = ADentry.email; } { user.Email = ADentry.username + "@" + adDomain; // mej@bleau.lan } user.Save();