Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Object reference not set to an instance of an object, CreatePortal - GetPortalSettingsObject reference not set to an instance of an object, CreatePortal - GetPortalSettings
Previous
 
Next
New Post
4/23/2012 8:13 AM
 
I'm creating a custom module that needs to create child portals, but for life of me I cannot figure out why the call to DNN to create a child portal fails during a call to GetPortalSettings located inside the CreatePortal procedure. But, creating a child portal from within the Host Site Management tab poses no problems and works every time. I have copied the same logic from the dnn admin Signup.ascx control.

I'm logged in as the host user!

I have tried stepping thru the creating of a child site using the host site manage tab, and at the call to CreatePortal copy the same value and pasting the same parameter values into the code below (obviously making sure the site does not already exist), the call still crashes at GetPortalSettings.

PortalController portalController = new PortalController();

UserInfo adminUser = UserInfo;
adminUser.Membership.Password = UserController.GetPassword(ref adminUser, String.Empty);

int intPortalId = portalController.CreatePortal(
"demoportal"
, adminUser
, "demoportal"
, ""
, @"C:\Websites\Test\Portals\_default"
, "Blank Website.template"
, ""
, @"localhost/demoportal"
, @"C:\Websites\Test\Portals\"
, @"C:\Websites\Test\demoportal"
, true);

Does anyone know where or from whom I could get some help to try resolve this issue?

Any Ideas are welcome at this stage!

Apologies it this is not the correct place to post, but I don't know where else to get help!

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Object reference not set to an instance of an object, CreatePortal - GetPortalSettingsObject reference not set to an instance of an object, CreatePortal - GetPortalSettings


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out