System.InvalidOperationException: There was an error generating the XML document. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Security.Roles.RoleInfo.get_RoleType()
at DotNetNuke.Security.Roles.RoleInfo.WriteXml(XmlWriter writer)
at System.Xml.Serialization.XmlSerializationWriter.WriteSerializable(IXmlSerializable serializable, String name, String ns, Boolean isNullable, Boolean wrapped)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterUserRoleInfo.Write1_UserRoleInfo(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(TextWriter textWriter, Object o, XmlSerializerNamespaces namespaces)
at System.Xml.Serialization.XmlSerializer.Serialize(TextWriter textWriter, Object o)
at DotNetNuke.Common.Utilities.XmlUtils.Serialize(Object obj)
at DotNetNuke.Services.Log.EventLog.EventLogController.AddLog(Object objCBO, PortalSettings _PortalSettings, Int32 UserID, String UserName, String LogType)
at DotNetNuke.Services.Log.EventLog.EventLogController.AddLog(Object objCBO, PortalSettings _PortalSettings, Int32 UserID, String UserName, EventLogType objLogType)
at DotNetNuke.Security.Roles.RoleController.AddUserRole(Int32 PortalID, Int32 UserId, Int32 RoleId, DateTime EffectiveDate, DateTime ExpiryDate)
at DotNetNuke.Security.Roles.RoleController.AddUserRole(Int32 PortalID, Int32 UserId, Int32 RoleId, DateTime ExpiryDate)
at PMIMembershipUpdate.addNewUser(String[] theData) in c:\inetpub\wwwroot\DNN521\Website\DesktopModules\PMIMembershipUpdate\PMIMembershipUpdate.ascx.cs:line 218
Thanks for any advice.