I've run into a problem with signing existing users on to a newsletter group.
If a user already exists in the database accessuser table with either accessusertype 11, 15 or 2 - subscribe works fine - but if a accessusertype is 5 (user) a error occures:
An error occured while attaching module (Dynamicweb.Frontend.Content) Instance validation error: '5' is not a valid value for Dynamicweb.NewsLetterV3.Consts.RecipientTypeI had a look at the Consts.RecipientType in Dynamicweb:
public enum RecipientType
{
ExtranetGroup = 11,
User = 15,
UserGroup = 2
}
Hmmm ... So - It's not possible to sign up for a newsletter if you already exists in the db as a user?
Can any one come up with a solution/workarround???
/Morten
###
An error occured while attaching module (Dynamicweb.Frontend.Content)
System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: Instance validation error: '5' is not a valid value for Dynamicweb.NewsLetterV3.Consts.RecipientType. at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterRecipient.Write5_RecipientType(RecipientType v) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterRecipient.Write8_Recipient(String n, String ns, Recipient o, Boolean isNullable, Boolean needType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterRecipient.Write9_Recipient(Object o) --- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id) at System.Xml.Serialization.XmlSerializer.Serialize(Stream stream, Object o, XmlSerializerNamespaces namespaces) at System.Xml.Serialization.XmlSerializer.Serialize(Stream stream, Object o) at Dynamicweb.NewsLetterV3.Xml.Serialize[T](T objT) at Dynamicweb.NewsLetterV3.TempRecipient.Save(Recipient recipient) at Dynamicweb.NewsLetterV3.Frontend.RecipientDispatcher.SaveRecipient(Recipient recipient) at Dynamicweb.NewsLetterV3.Frontend.EditRecipient.BuildForm(Template tmpl, Recipient recipient) at Dynamicweb.NewsLetterV3.Frontend.EditRecipient.Edit(Template tmpl, Action action) at Dynamicweb.NewsLetterV3.Frontend.Subscribe.Render() at Dynamicweb.NewsLetterV3.Frontend.Output.GetContent() at Dynamicweb.Frontend.Content.getModule(DataRow& ParagraphRow)