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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Install giving "Error: Object reference not set to an instance of an object."Install giving "Error: Object reference not set to an instance of an object."
Previous
 
Next
New Post
8/31/2006 12:30 PM
 

I have searched the web and forums on this error and didn't get very far.

This is a fresh install - not an upgrade and I have looked at and followed the install guide, etc. I have installed other DotNetNuke versions 4.0.x but this is the only one that has been giving me trouble.

I have tried to install 4.3.4 on different boxes all with the same results:

  • Windows Server 2003 R2 SP1
  • Windows XP Pro w SP2
  • Windows MCE 2005 Update 2

My next option looks like to install the source and debug the InstallDNN function, hopefully I won't have to go that far and someone knows what I am missing.

Environment Information:

  • IIS 6 or IIS 5 based on OS attempting to install on
  • SQLExpress co-located with IIS running in Mixed Authentication mode and DNN using SQL Server Authentication
  • Virtual directory under default site in IIS
  • 1GB-2GB memory on all machines
  • .NET 2.0
  • VS 2005 (on dev box)
  • Anything else needed?

Additional Setup Information:

  • Portal Table has portal row defined
  • PortalAlias table is not populated - no rows
  • Roles table populated with Administrators, Registered Users, Subscribers
  • Users table populated with Super User and Administrator
  • Version table populated thru 4.3.4 version (27 rows)
  • ModuleDefinitions is populated

The inititialization page on the standard install is as follows:

Installing DotNetNuke

Version: 04.03.04

Installation Status Report

00:00:00.040 - Installing Version: 3.1.0
00:00:00.040 - Installing Script: DotNetNuke.SetUp.SqlDataProvider
00:00:00.180 - Installing Script: DotNetNuke.Schema.SqlDataProvider
00:00:03.675 - Installing Script: DotNetNuke.Data.SqlDataProvider
00:00:06.018 - Installing MemberRole Provider:
00:00:06.018 - Executing InstallCommon.sql
00:00:08.251 - Executing InstallMembership.sql
00:00:09.423 - Executing InstallProfile.sql
00:00:09.804 - Executing InstallRoles.sql
00:00:10.334 - Upgrading to Version: 3.1.1
00:00:13.469 - Upgrading to Version: 3.2.0
00:00:13.619 - Upgrading to Version: 3.2.1
00:00:13.699 - Upgrading to Version: 3.2.2
00:00:13.739 - Upgrading to Version: 3.2.3
00:00:17.074 - Upgrading to Version: 3.2.4
00:00:17.154 - Upgrading to Version: 3.2.5
00:00:17.204 - Upgrading to Version: 3.2.6
00:00:17.274 - Upgrading to Version: 3.2.7
00:00:17.294 - Upgrading to Version: 3.3.0
00:00:17.405 - Upgrading to Version: 3.3.1
00:00:17.465 - Upgrading to Version: 3.3.2
00:00:17.555 - Upgrading to Version: 3.3.3
00:00:17.725 - Upgrading to Version: 4.0.0
00:00:17.975 - Upgrading to Version: 4.0.1
00:00:18.035 - Upgrading to Version: 4.0.2
00:00:18.065 - Upgrading to Version: 4.0.3
00:00:18.096 - Upgrading to Version: 4.0.4
00:00:18.957 - Upgrading to Version: 4.0.5
00:00:18.967 - Upgrading to Version: 4.0.6
00:00:18.967 - Upgrading to Version: 4.0.7
00:00:18.977 - Upgrading to Version: 4.3.0
00:00:18.997 - Upgrading to Version: 4.3.1
00:00:19.017 - Upgrading to Version: 4.3.2
00:00:19.087 - Upgrading to Version: 4.3.3
00:00:19.197 - Upgrading to Version: 4.3.4
00:00:19.227 - Performing General Upgrades
00:00:19.898 - Loading Host Settings:
00:00:19.978 - Configuring SuperUser:
00:00:20.709 - Installing Desktop Modules:
00:00:20.709 - Installing Modules:
00:00:20.729 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Announcements_03.03.04_Install.zip:
00:00:22.161 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Blog_3.02.00_Install.zip:
00:00:26.247 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Contacts_3.1_Install.zip:
00:00:26.758 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Documents_03.01.05_Install.zip:
00:00:27.840 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Events_3.2_Install.zip:
00:00:31.094 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\FAQs_3.1_Install.zip:
00:00:31.625 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Feedback_03.02.01_Install.zip:
00:00:32.056 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Forum_3.20.08_Install.zip:
00:00:43.692 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Gallery_3.0.12_Install.zip:
00:00:46.336 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Help_2.0.4_Install.zip:
00:00:47.638 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\HTML_3.3.0_Install.zip:
00:00:48.009 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\IFrame_3.2_Install.zip:
00:00:48.499 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Links_3.3_Install.zip:
00:00:49.150 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Media_03.02.02_Install.zip:
00:00:49.551 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\NewsFeeds_3.1.1_Install.zip:
00:00:49.771 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Reports_4.3.1_Source.zip:
00:00:51.624 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Repository_3.1.10_Install.zip:
00:01:01.278 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Store_01.00.01_Install.zip:
00:01:05.053 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\Survey_3.3_Install.zip:
00:01:05.804 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\UserDefinedTable_3.03.03_Install.zip:
00:01:07.947 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\UsersOnline_3.1_Install.zip:
00:01:08.198 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\WhatsNew_3.3_Install.zip:
00:01:08.308 -   Installing Module File C:\UserData\devel\VisualStudioProjects\Web\DNN434\Install\Module\XML_3.1_Install.zip:
00:01:08.428 - Executing Additional Scripts:
00:01:08.438 -   Creating Portal: My Website
00:01:10.911 -   Error: Object reference not set to an instance of an object.
00:01:10.911 -   Portal failed to install:
00:01:10.911 - Installing Optional Resources:

Installation Complete

Click Here To Access Your Portal

Any help at this point would be great, as I'm at a loss as to why it is throwing the null ref error. One more thing it creates the row in the Portal Table

Thanks

 
New Post
9/1/2006 3:00 PM
 

Well I dug in and found the problem...

It seems that if you use the AspNetSecurity.Membership the function CreateMembershipUser function in AspNetMembershipProvider.vb does not take into consideration the option for requiring a security question and answer.

I.e. in the web config if you specify:

 <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SiteSqlServer" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="true" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" requiresUniqueEmail="true" passwordFormat="Encrypted" applicationName="DotNetNuke" description="Stores and retrieves membership data from the local Microsoft SQL Server database"/>

The creation of the user fails with an AspNetSecurity.MembershipCreateStatus.InvalidAnser as the call to create the user:

objMembershipUser = AspNetSecurity.Membership.CreateUser(userName, user.Membership.Password, email, Nothing, Nothing, True, objStatus)

Simply passes in Nothing for the security question and security answer causing the user creation to fail and thus bubble up as a null ref exception.

So the moral of the story is do not require a security Question and Answser in the web.config file for the AspNetSqlMembershipProvider option requiresQuestionAndAnswer="true".

The UserInfo class should be updated to hold the Security Question and Answer, populate the info if specified in the DotNetNuke.Install.config specification for the host and admin users, and then the CreateMembershipUser() should pass the information if populated when calling   AspNetSecurity.Membership.CreateUser() instead of Nothing, Nothing.

FYI: Seems that the lookup for the Localization of the "InvalidAnswer" message is what is throwing the NullRef in UserController.GetUserCreateStatus() in namespace DotNetNuke.Entities.Users.

Enjoy

Chris Buzzetta

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Install giving "Error: Object reference not set to an instance of an object."Install giving "Error: Object reference not set to an instance of an object."


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