#
Constructor
I have created a module called NewModule.
Everything I have tried works so far except this error that I can not fix.
1) In the 'Cuyahoga Site Administration' select 'Manage modules'
2) My new module is there so I click 'Install'. It installs without error.
3) I click 'Load on startup' (this usually makes the activation status 'Active') but this time I get the error:
An error occured: Loading failed for NewModule.
Value cannot be null. Parameter name: serviceType
In the modules project folder I have a 'DataAccess' folder containing ICarsDao and CarsDao. These are carefully constructed using the Articles as a guide.
In the database 'cuyahoga_moduleservice' table I have the following entries:
FIELD : {VALUE}
moduleserviceid :
moduletypeid : {99 } (This is correct)
servicekey : {newmodule.carsdao} (I set this) Can somone explain its purpose etc...
servicetype : {Cuyahoga.Modules.NewModule.DataAccess.ICarsDao, Cuyahoga.Modules.NewModule}
classtype : {Cuyahoga.Modules.NewModule.DataAccess.CarsDao, Cuyahoga.Modules.NewModule}
lifestyle : {null}
I still get:
An error occured: Loading failed for NewModule.
Value cannot be null. Parameter name: serviceType
I tried to see what was happening in debug 'ModuleLoader.cs'. Here I found that (lines 162-163 of 'ModuleLoader.cs')
Type serviceType = Type.GetType(moduleService.ServiceType);
Type classType = Type.GetType(moduleService.ClassType);
Both are null for my new control.
Has anyone had a similar issue. Can anyone help? I have spent a long time on this :(
Everything I have tried works so far except this error that I can not fix.
1) In the 'Cuyahoga Site Administration' select 'Manage modules'
2) My new module is there so I click 'Install'. It installs without error.
3) I click 'Load on startup' (this usually makes the activation status 'Active') but this time I get the error:
An error occured: Loading failed for NewModule.
Value cannot be null. Parameter name: serviceType
In the modules project folder I have a 'DataAccess' folder containing ICarsDao and CarsDao. These are carefully constructed using the Articles as a guide.
In the database 'cuyahoga_moduleservice' table I have the following entries:
FIELD : {VALUE}
moduleserviceid :
moduletypeid : {99 } (This is correct)
servicekey : {newmodule.carsdao} (I set this) Can somone explain its purpose etc...
servicetype : {Cuyahoga.Modules.NewModule.DataAccess.ICarsDao, Cuyahoga.Modules.NewModule}
classtype : {Cuyahoga.Modules.NewModule.DataAccess.CarsDao, Cuyahoga.Modules.NewModule}
lifestyle : {null}
I still get:
An error occured: Loading failed for NewModule.
Value cannot be null. Parameter name: serviceType
I tried to see what was happening in debug 'ModuleLoader.cs'. Here I found that (lines 162-163 of 'ModuleLoader.cs')
Type serviceType = Type.GetType(moduleService.ServiceType);
Type classType = Type.GetType(moduleService.ClassType);
Both are null for my new control.
Has anyone had a similar issue. Can anyone help? I have spent a long time on this :(