Hi all,
I have a site running with DNN, and now I want to add a windows service task to execute some synchronization actions frequently.
To try it, I have created my console application with my connection string and I try to use, for example, to get the module settings of a particular module inside my site:
ModuleController moduleController = new ModuleController(); ArrayList modules = moduleController.GetModulesByDefinition(portalId, moduleName);
However I always got NullReference excepton inside.
I guess that the dataprovider is not loaded in my console application (I have previously solved all dependency reference).
Is this possible? There is some method to instantiate the portal information to be able to access to my modules information?
Many thanks in advance.
Many thanks for your quick response.
I am investigating a task schedule that seems will be able to work for the purpose I am looking for.
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.