Hi,
I am trying to create a child portal via programming after validating existing portal alias, home directory, user name,template when I am calling below CreatePortal(). I am getting object reference error.\
Details of error:
at DotNetNuke.Entities.Modules.DesktopModuleController.AddDesktopModuleToPage(DesktopModuleInfo desktopModule, TabInfo tab, Boolean& addedNewModule)
at DotNetNuke.Entities.Modules.DesktopModuleController.AddDesktopModulesToPortal(Int32 portalId)
at DotNetNuke.Entities.Portals.PortalController.CreatePortalInternal(Int32 portalId, String portalName, UserInfo adminUser, String description, String keyWords, PortalTemplateInfo template, String homeDirectory, String portalAlias, String serverPath, String childPath, Boolean isChildPortal, String& message)
at DotNetNuke.Entities.Portals.PortalController.CreatePortal(String portalName, UserInfo adminUser, String description, String keyWords, PortalTemplateInfo template, String homeDirectory, String portalAlias, String serverPath, String childPath, Boolean isChildPortal)
at DNNRealEstate.ChildPortalModule.RegisterCustomer.CreateNewPortal(String strPortalName, String strPassword, String strConfirmPassword, String strFirstName, String strLastName, String strUserName, String strQuestion, String strAnswer, String strEmail)
I tried to google for this issue but not get any specific answer. Please help me to understand what I am missing.
thanks