Forum Control / Comment Control (???)

Topics: Developer Forum, Project Management Forum, User Forum
Sep 5, 2008 at 1:01 PM
Hi,

Is there any Forum Control or control to add comments to page?

I'm looking for any control to get feedback form site users - else then sending mails or poll.
Coordinator
Sep 5, 2008 at 11:57 PM
There is a comments feature in the examples. It's not a bad idea. I might just add that to the templates.
Sep 8, 2008 at 12:33 AM
Where exactly in examples??
Coordinator
Sep 8, 2008 at 5:10 PM
In the MVC example. Also committed to the trunk there's an add comment feature in the "templates" that will be included in the next release.
Sep 8, 2008 at 5:45 PM
I have an error in MVC example.
http://www.fotohost.net/plik.php?file=kmn57mhtkj608bndvgle.jpg

How can I get to trunk and download it?


Coordinator
Sep 8, 2008 at 8:19 PM
Hmm, couldn't reproduce that. Could have have missing file permissions? Have you enabled wildcard mappings in IIS?

You can get the code here. There's a link with clients and instructions on that page.
Sep 8, 2008 at 9:20 PM
I've got all source it builds fine. I've run wwroot in src. Drag and drop Comment Control and when I submit some comment I've got an exception:

Server Error in '/' Application.

Index must be within the bounds of the List.
Parameter name: index

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Index must be within the bounds of the List.
Parameter name: index

Source Error:

Line 152:		{
Line 153: siblings.Remove(itemToMove);
Line 154: siblings.Insert(newIndex, itemToMove);
Line 155: }
Line 156:

Source File: c:\zMP3\_CMS\SVN\src\N2\Utility.cs    Line: 154

Stack Trace:

[ArgumentOutOfRangeException: Index must be within the bounds of the List.
Parameter name: index]
System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +64
System.Collections.Generic.List`1.Insert(Int32 index, T item) +7663012
NHibernate.Collection.Generic.PersistentGenericBag`1.Insert(Int32 index, T item) +71
N2.Utility.MoveToIndex(IList`1 siblings, ContentItem itemToMove, Int32 newIndex) in c:\zMP3\_CMS\SVN\src\N2\Utility.cs:154
N2.Utility.Insert(ContentItem item, ContentItem newParent, Int32 index) in c:\zMP3\_CMS\SVN\src\N2\Utility.cs:216
N2.Templates.UI.Parts.CommentInput.btnSubmit_Click(Object sender, EventArgs e) in c:\zMP3\_CMS\SVN\src\wwwroot\Templates\UI\Parts\CommentInput.ascx.cs:26
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
Coordinator
Sep 8, 2008 at 11:00 PM
Thanks for finding, hadn't noticed that (it's fixed now).
Sep 10, 2008 at 11:06 AM
I have already installed N2 CMS (earlier version) and I don't want to copy all files from the newest version.

How can I add only Comment Control Part to my CMS? I'd like to see it in Toolbox when I'm in organize parts mode.
Coordinator
Sep 10, 2008 at 4:54 PM
It might be enough to replace bin/*.dll
Sep 11, 2008 at 9:52 AM
It's not simple as that.

I've copied all dlls from SVN\src\wwwroot\Bin\ and I got:

Server Error in '/' Application.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) +0
System.Reflection.Assembly.GetTypes() +96
N2.Engine.AppDomainTypeFinder.Find(Type requestedType) +115

[N2Exception: Error getting types from assembly N2.Templates.UI, Version=1.0.403.37994, Culture=neutral, PublicKeyToken=null, Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.IFeed' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.IFeed' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'.]
N2.Engine.AppDomainTypeFinder.Find(Type requestedType) +323
N2.Plugin.<GetPluginDefinitions>d__0.MoveNext() +359
N2.Plugin.PluginBootstrapper.InitializePlugins(IEngine engine, IEnumerable`1 plugins) +81
N2.Engine.ContentEngine.Initialize() +49
N2.Context.Initialize(Boolean forceRecreate) +59
N2.Web.InitializerModule.Init(HttpApplication context) +10
System.Web.HttpApplication.InitModulesCommon() +66
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1006
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +259
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +114
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +350


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 <!-- [ReflectionTypeLoadException]: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Assembly.GetTypes() at N2.Engine.AppDomainTypeFinder.Find(Type requestedType) [N2Exception]: Error getting types from assembly N2.Templates.UI, Version=1.0.403.37994, Culture=neutral, PublicKeyToken=null, Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.IFeed' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.IFeed' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'., Could not load type 'N2.Templates.Syndication.ISyndicatable' from assembly 'N2.Templates, Version=1.0.403.22644, Culture=neutral, PublicKeyToken=null'. at N2.Engine.AppDomainTypeFinder.Find(Type requestedType) at N2.Plugin.PluginBootstrapper.<GetPluginDefinitions>d__0.MoveNext() at N2.Plugin.PluginBootstrapper.InitializePlugins(IEngine engine, IEnumerable`1 plugins) at N2.Engine.ContentEngine.Initialize() at N2.Context.Initialize(Boolean forceRecreate) at N2.Web.InitializerModule.Init(HttpApplication context) at System.Web.HttpApplication.InitModulesCommon() at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
Coordinator
Sep 11, 2008 at 8:35 PM
Sorry for misleading you. You can do svn update to get the changes only. Also please make sure to clear the bin folder. I've removed an assembly.