Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# swilliam 4/20/2007 10:21 AM
Dear All

I'm having a strange error I can't seem to fix. After I installed one of my own modules (incorrectly), I appear to have broken the Articles module. When I attempt to create a section with an Articles module, I see the following error:
An error occured: ComponentActivator: could not proxy Cuyahoga.Modules.Articles.ArticleModule

I can't see anything obvious in the database definitions of the module. I presume this is Castle being unable to create an instance of ArticleModule.

Any suggestions?

Many thanks

Simon
# mgaerber 4/21/2007 3:33 AM
What did your custom module change? Was it a modification of the original ArticleModule?

For Castle being able to proxy classes you have to provide an Interface or have the properties set to virtual.

Regards,
Max
# swilliam 4/21/2007 10:08 AM
Max

Yes, the new custom module is a variant of the ArticleModule, but uses a different namespace.

I've fixed it now - I must have accidentally deleted a row related to ArticleModules. I uninstalled the Article Module (had to do it manually because the auto uninstall failed) and it worked properly.

Many thanks

Simon
# swilliam 4/23/2007 5:32 AM
I've fixed my original problem, but now my new modules don't work. I changed the name of the module and recompiled but, even though I think I've changed the references in the database, the Modules section in admin shows the old module *and* the new module. Does anyone have any idea where this reference to the old module comes from?

I think there is an additional confusion here as well. It looks like I can get *either* the Articles module working, or my new Articles variant module working (the other module throws up ComponentActivator: could not proxy Cuyahoga.Modules.ModuleName.ModuleClass). I presume there is a reference clash somewhere. Some of the classes of each project have the same name, but the don't share the same namespace.

Many thanks

Simon