Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# juanwoang 7/17/2009 4:11 PM
Hello all,

Today I have a look at Cuy' Trunk. It is great because I know you are work very hard to make these changes. So when click at link Manage modules, an error was appeared. like that:
Server Error in '/' Application.
No component for supporting the service NHibernate.ISessionFactory was found
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: Castle.MicroKernel.ComponentNotFoundException: No component for supporting the service NHibernate.ISessionFactory was found

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:

[ComponentNotFoundException: No component for supporting the service NHibernate.ISessionFactory was found]
Castle.MicroKernel.DefaultKernel.get_Item(Type service) +125
Castle.Windsor.WindsorContainer.Resolve(Type service) +13
Castle.Windsor.WindsorContainer.Resolve() +58
Cuyahoga.Core.Util.IoC.Resolve() +111
Cuyahoga.Core.Util.DatabaseUtil.GetNHibernateSessionFactory() +35
Cuyahoga.Core.Util.DatabaseUtil.GetCurrentDatabaseType() +43
Cuyahoga.Core.Service.DatabaseInstaller..ctor(String installRootDirectory, Assembly assembly) +87
Cuyahoga.Web.Admin.Modules.rptModules_ItemDataBound(Object sender, RepeaterItemEventArgs e) +482
System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +108
System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +136
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +443
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +51
System.Web.UI.WebControls.Repeater.DataBind() +75
Cuyahoga.Web.Admin.Modules.BindModules() +737
Cuyahoga.Web.Admin.Modules.Page_Load(Object sender, EventArgs e) +146
System.Web.UI.Control.OnLoad(EventArgs e) +99
Cuyahoga.Web.Admin.UI.AdminBasePage.OnLoad(EventArgs e) +49
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Does anyone know what was happen and how to fix? Thanks
# martijnb 7/27/2009 10:14 PM
Ran into the same issue. It seems that the NHibernate facility doesn't register session factories with a singleton lifestyle. Going after it.