Hi,
I am new to DNN. I'm trying to learn how to use DNN Modules, but I can't seem to get away with it.
I installed DNN using the 06.01.02 starter kit. I work with Visual Studio 2010.
Everything worked at first, I created my portal, added a couple of pages, and customized them no problem, until I tried to add the new module. I called it "ConsultarMarcajes".
I was following your article. Errors started appearing once I had already added the module and got to the point "Rename "YourCompany" if desired". The article tells us to compile the project to make sure everything is OK... and I guess it was not in my case. When I compile my project, I get a lot of error messages saying:
"The type or namespace name '[X]' could not be found (are you missing a using directive or an assembly reference?)"
Where [X] is always "ConsultarMarcajesInfo", "ConsultarMarcajesController" or "DataProvider".
When the new module was added, a few filed where added to a folder named\PortalEmpleado\Portals\0\DesktopModules\ConsultarMarcajes: ConsultarMarcajes.dnn, ViewConsultarMarcajes.ascx, EditConsultarMarcajes.ascx, etc. and the following files containing classes were copied to PortalEmpleado\Portals\0\App_Code\ConsultarMarcajes: ConsultarMarcajesController.cs, ConsultarMarcajesInfo.cs, DataProvider.cs and SqlDataProvider.cs.
I guess, from the classes defined in \PortalEmpleado\Portals\0\DesktopModules\ConsultarMarcajes, I cannot access the classes defined in PortalEmpleado\Portals\0\App_Code\ConsultarMarcajes. Is there any reason for that?
The new namespace, after renaming the initial "Philip" namespace which VS2010 created by default, is "PortalEmpleado.Modules.ConsultarMarcajes". I checked all files belong to this same namespace.
I hope some can shed some light on this.
Thanks in advance,
Dani Carbonell