Developer forum

Forum » Development » Troubles when subscribing to newsletter with existing emailaddress

Troubles when subscribing to newsletter with existing emailaddress


Reply
When somebody tries to subscribe for a newsletterv3 with an emailaccount that is already in the system (i.e. this person is already a known ecom customer) a nasty error output is generated on the webpage.

When an unknown emailaddress is used, there is no problem ...

Anybody knows why and can help me to a solution?

An error occured while attaching module (Dynamicweb.Frontend.Content)<br><br><pre>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)




Replies

 

You must be logged in to post in the forum