#
Dumpman
Hi,
An exception is being thrown when I rebuild the index on the site.
The exception is thrown in Cuyahoga.Core.Domain.Section.CreateModule() on the following line:
The exception being thrown is:
{System.MissingMethodException: Constructor on type 'Cuyahoga.Modules.User.UserModule' not found.
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Cuyahoga.Core.Domain.Section.CreateModule(String sectionUrl) in C:\projects\Project Orange\cuyahoga\Core\Domain\Section.cs:line 233
at Cuyahoga.Web.Admin.RebuildIndex.BuildIndexByNode(Node node, IndexBuilder ib) in C:\projects\Project Orange\cuyahoga\Web\Admin\RebuildIndex.aspx.cs:line 76}
I suspect this has something to do with the fact we are using dependency injection and there is no default constructor for the objects.
Has anyone else encountered this problem? I don't want to ditch lucene if I don't have to.
Thanks,
Tim
An exception is being thrown when I rebuild the index on the site.
The exception is thrown in Cuyahoga.Core.Domain.Section.CreateModule() on the following line:
ModuleBase concreteModule = (ModuleBase)Activator.CreateInstance(moduleType, new object[] {this});The exception being thrown is:
{System.MissingMethodException: Constructor on type 'Cuyahoga.Modules.User.UserModule' not found.
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Cuyahoga.Core.Domain.Section.CreateModule(String sectionUrl) in C:\projects\Project Orange\cuyahoga\Core\Domain\Section.cs:line 233
at Cuyahoga.Web.Admin.RebuildIndex.BuildIndexByNode(Node node, IndexBuilder ib) in C:\projects\Project Orange\cuyahoga\Web\Admin\RebuildIndex.aspx.cs:line 76}
I suspect this has something to do with the fact we are using dependency injection and there is no default constructor for the objects.
Has anyone else encountered this problem? I don't want to ditch lucene if I don't have to.
Thanks,
Tim