1

Closed

Submission of post requiring moderation logs missing method exception in Event Viewer

description

When moderation is enabled and an untrusted user submits a post the following exception is logged in the event viewer:
 
System.MissingMethodException: No parameterless constructor defined for this object. at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at DotNetNuke.Common.Utilities.CBO.CreateObject(Type objType, Boolean initialise) at DotNetNuke.Common.Utilities.CBO.CreateObjectFromReader(Type objType, IDataReader dr, Boolean closeReader) at DotNetNuke.Common.Utilities.CBO.FillListFromReader[TItem](IDataReader dr, IList`1 objList, Boolean closeReader) at DotNetNuke.Common.Utilities.CBO.FillCollection[TItem](IDataReader dr) at WESNet.DNN.Modules.EPrayer.EPrayerController.GetModeratorEMails(Int32 PostID) at WESNet.DNN.Modules.EPrayer.MailManager.SendModeratorEMails() --- End of inner exception stack trace --- at WESNet.DNN.Modules.EPrayer.MailManager.SendModeratorEMails() at WESNet.DNN.Modules.EPrayer.MailManager.SendMail() at WESNet.DNN.Modules.EPrayer.PostEPrayer.cmdSubmit_Click(Object sender, EventArgs e)
 
Although it was initially thought this occurred only in DNN 6.x installs, it also occurs in DNN 5.x installs.
 
Fixed section of code in EPrayerController.GetModeratorEmails which had been incorrectly introduced while testing a separate issue and not removed prior to the 5.00.00 release build.
Closed Jun 18, 2012 at 9:58 PM by imagemaker
Closed all issues fixed in v 5.00.01

comments