Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# XscorX 1/27/2008 6:17 PM
i am trying to create a module using the advanced structure of the Article module

but when i tried to create an object i gave me an error telling me that there is a service that needs setting ( for the Dao items )

i created this line and inserted in the field taking the article as my refreance

seviceId ; 
ModuleId ; 
CustomerLinker.CustomerDao	;
Cuyahoga.Modules.CustomerByCountry.DataAccess.ICustomerDao , Cuyahoga.Modules.CustomerByCountry;  Cuyahoga.Modules.CustomerByCountry.DataAccess.CustomerDao , Cuyahoga.Modules.CustomerByCountry; 
NULL


but i t now tells me
An error occured: Value cannot be null. Parameter name: serviceType

is there a setting i messed or a function i forget to implement

# martijnb 1/28/2008 1:13 PM
I don't understand the code. Is it real code? Or configuration?

A wild guess is that your module comes with its own components that need to be registered in the container. This can be done by adding a record to the cuyahoga_moduleservice table with the component definition.
# XscorX 1/29/2008 3:47 PM
sorry this is not the code it is the field in the cuyahoga_moduleservice

and the fields are separated by " ; "
# martijnb 1/29/2008 9:22 PM
OK, can you perhaps debug /Web/Components/ModuleLoader.cs? In AddModuleToContainer(), the module services are registered before the module itself is registered and obtained. Your database record looks alright to me.