Hi. I seem to be having a problem whereby all active modules get deactivated and require you to login to the administration and reactivate each module.
It seems to happen, only sometimes, when updating the bin folder with a new module build. We seem to have this problem on Cuyahoga 1.5.x and 2.
Any ideas?
This looks like a bug. After adding a new dll to the /bin directory, the application restarts and for some reason, the modules aren't loaded properly. I'll have a look at it.
Hmmm, I'm unable to reproduce this. Could you turn on logging and check if something goes wrong while loading the modules?
I have turned logging on, I will post here when it happens again.
Right so it just happened.
Here is the info from the log file.
2008-08-27 14:14:36,769 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: Castle.Facilities.NHibernateIntegration.Internal.WebSessionStore
2008-08-27 14:14:36,816 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: Castle.Facilities.NHibernateIntegration.Internal.DefaultSessionManager
2008-08-27 14:14:36,832 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: Castle.Facilities.AutomaticTransactionManagement.TransactionInterceptor
2008-08-27 14:14:37,035 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: ICommonDaoProxye5480242548149b581b564ab12286cec
2008-08-27 14:14:37,035 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: Castle.Facilities.AutomaticTransactionManagement.TransactionInterceptor
2008-08-27 14:14:37,082 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: ISiteStructureDaoProxyb63d484ed50f4c1abd642d956b0c6ec0
2008-08-27 14:14:37,082 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: Castle.Facilities.AutomaticTransactionManagement.TransactionInterceptor
2008-08-27 14:14:37,098 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: IUserDaoProxyf25dd031d74e46c28d52fc381c46470e
2008-08-27 14:14:37,098 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: Castle.Facilities.AutomaticTransactionManagement.TransactionInterceptor
2008-08-27 14:14:37,129 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: INodeServiceProxy580515eb93db4340ba18e890132d7580
2008-08-27 14:14:37,129 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: Cuyahoga.Core.Service.CoreRepositoryAdapter
2008-08-27 14:14:37,129 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: Castle.Services.Transaction.DefaultTransactionManager
2008-08-27 14:14:37,160 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Entering module loading.
2008-08-27 14:14:37,160 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: Castle.Facilities.AutomaticTransactionManagement.TransactionInterceptor
2008-08-27 14:14:37,176 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: IModuleTypeServiceProxyb9efe09df6e84365a5ff3ef912ebed35
2008-08-27 14:14:37,176 [11] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: Cuyahoga.Web.Components.ModuleLoader
2008-08-27 14:14:37,176 [11] DEBUG Cuyahoga.Web.Components.ModuleLoader [(null)] <(null)> - Entering module loading.
2008-08-27 14:16:52,830 [8] INFO Cuyahoga.Web.HttpHandlers.PageHandler [(null)] <(null)> - Starting request for /Default.aspx
2008-08-27 14:16:53,361 [8] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: Cuyahoga.Core.Service.SiteStructure.SiteService
2008-08-27 14:16:53,361 [8] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: Castle.Facilities.AutomaticTransactionManagement.TransactionInterceptor
2008-08-27 14:16:53,377 [8] DEBUG Cuyahoga.Web.Global [(null)] <(null)> - Component created: ISectionServiceProxy684ca46ae93e428d943e30896cc80d25
2008-08-27 14:16:54,690 [8] DEBUG Cuyahoga.Web.Components.ModuleLoader [(null)] <(null)> - Unable to find module with key 'module.Cuyahoga.Modules.SocialProfile.SocialAdminModule' in the container.
2008-08-27 14:16:54,690 [8] DEBUG Cuyahoga.Web.Components.ModuleLoader [(null)] <(null)> - Unable to find module with key 'module.Cuyahoga.Modules.User.UserModule' in the container.
2008-08-27 14:16:54,690 [8] DEBUG Cuyahoga.Web.Components.ModuleLoader [(null)] <(null)> - Unable to find module with key 'module.Cuyahoga.Modules.StaticHtml.StaticHtmlModule' in the container.
2008-08-27 14:16:54,752 [8] INFO Cuyahoga.Web.HttpHandlers.PageHandler [(null)] <(null)> - Request finshed. Total duration: 921 ms.
As you can see no modules are loaded and module loading never finishes.
I'm really puzzled by this. Does it occur on a busy site, or also in the development environment?
As far as I am aware, it only happens in the development environment.