I have added the Sample .NET spam filter implementation code inside the class in "App_Code" folder
I have also updated the web.config file with below keys.
Comment.SpamFilter.Assembly
Comment.SpamFilter.Implementation
Comment.SpamFilter.Exclude1
I am able to submit/ view the Comments when I remove the above keys from web.config file.
Please suggest.
<add key="Comment.SpamFilter.Assembly" value="namespace name" />
<add key="Comment.SpamFilter.Implementation" value="namespace name.WordsSpamFilter" />
<add key="Comment.SpamFilter.Exclude1" value="poker" />
[ArgumentNullException: Value cannot be null.
Parameter name: type]
Tridion.ContentDelivery.UGC.Web.Utilities.UGCConfigurationLoader..ctor() +293
Tridion.ContentDelivery.UGC.Web.Utilities.UGCConfigurationLoader..cctor() +28
[TypeInitializationException: The type initializer for 'Tridion.ContentDelivery.UGC.Web.Utilities.UGCConfigurationLoader' threw an exception.]
Tridion.ContentDelivery.UGC.WebService.WebServiceHelper.PostComment(String itemUri, String username, String email, String content) +422
Tridion.ContentDelivery.UGC.Web.UI.ManageComments.Render(HtmlTextWriter writer) +505
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +315
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +48
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.Page.Render(HtmlTextWriter writer) +40
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5274
UGCConfigurationLoader
it would be helpful to post the sections you added to web.config - it does seem to be related to it.