Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Adding a module
chadoum
#1 Posted : Saturday, June 25, 2011 5:21:15 PM(UTC)
Rank: Member
Groups: Registered

Joined: 6/1/2011(UTC)
Posts: 16
Hi, I am beginner in mvc and I'm presently doing my first website with kooboo (and I'm french, so excuse my bad english!). Everything is fine, but now I'm triyng to make a module (just a simple contactform module to have a practice test).
First problem: when I want to add a module (downloaded on codeplex:htmlForm) in a page I received this error:

Error in line 1 position 121. Expecting element 'ModuleInfo' from namespace 'http://schemas.datacontract.org/2004/07/Kooboo.CMS.Sites.Extension.Module'.. Encountered 'Element' with name 'ModuleConfiguration', namespace ''.

Did I delete something or am I using a wrong version or something else?

Second problem: when I add my own module on a page, it's ok but when I navigate on that page I recieve this error:

Multiple types were found that match the controller named 'Home'. This can happen if the route that services this request ('{controller}/{action}') does not specify namespaces to search for a controller that matches the request. If this is the case, register this route by calling an overload of the 'MapRoute' method that takes a 'namespaces' parameter.
The request for 'Home' has found the following matching controllers:
Kooboo.CMS.Web.Areas.Sites.Controllers.HomeController
Kooboo.CMS.Web.Areas.Contents.Controllers.HomeController

I've got also a question concerning development of a module: do I have to make only partial views or do I have to develop a module just as I develop a website?

Thanks for your help, and sorry for the questions that may seem stupid to you!
avonwyss
#2 Posted : Sunday, June 26, 2011 12:37:20 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 11/3/2010(UTC)
Posts: 58
chadoum;4181 wrote:
Did I delete something or am I using a wrong version or something else?

Which version of Kooboo are you using?
chadoum
#3 Posted : Sunday, June 26, 2011 2:37:10 PM(UTC)
Rank: Member
Groups: Registered

Joined: 6/1/2011(UTC)
Posts: 16
3.0.1
jifeng
#4 Posted : Monday, June 27, 2011 2:24:24 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,552
Location: Xiamen China
I think you used the old version module, the module for Kooboo V2 do not compatible with V3.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
chadoum
#5 Posted : Monday, June 27, 2011 7:16:31 AM(UTC)
Rank: Member
Groups: Registered

Joined: 6/1/2011(UTC)
Posts: 16
I'm sure I'm using Kooboo.CMS.ModuleTemplate version 3.01
chadoum
#6 Posted : Monday, June 27, 2011 9:09:58 AM(UTC)
Rank: Member
Groups: Registered

Joined: 6/1/2011(UTC)
Posts: 16
So I resolve the problem of the "Multiple types were found" but now I find the "not found error". But my path is right in the routes.config and in the module.config
I use partial views and my entry partial view is named Index.ascx, is that the problem? Do I have to use a view to load the module as I see once in the HtmlForm module?
jifeng
#7 Posted : Tuesday, June 28, 2011 1:10:06 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,552
Location: Xiamen China
HI

Which HTMLForm module you have seem? Please see the module template we had released.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.086 seconds.