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 ...Auto-Install FailsAuto-Install Fails
Previous
 
Next
New Post
7/21/2008 12:48 PM
 

We have been using DNN from source for quite a while now.  Up until recently, we have not had any issues.  However, this last time,we tried setting up a brand new installation of DNN on the server from our source verson (still 4.8.2) and got an error during the install (we use the auto-install) that we've never seen before.  It seems to install everything correctly until it gets to the point where it is setting up portal 0.  When it gets this error, the portal is not set up in the database and I cannot find a log anywhere that would tell me what the actual error is.  If I could attach a screenshot, I would, so here is the auto-install screen:



00:00:00.015 - Installing Version: 4.4.0
00:00:00.015 -   Executing Script: DotNetNuke.SetUp.SqlDataProvider Success
00:00:00.031 -   Executing Script: DotNetNuke.Schema.SqlDataProvider Success
00:00:02.921 -   Executing Script: DotNetNuke.Data.SqlDataProvider Success
00:00:05.734 - Installing MemberRole Provider:
00:00:05.734 -   Executing Script: InstallCommon
00:00:06.296 -   Executing Script: InstallMembership
00:00:06.671 -   Executing Script: InstallProfile
00:00:06.843 -   Executing Script: InstallRoles
00:00:07.093 - Upgrading to Version: 4.8.2
00:00:07.124 -   Executing Script: 04.04.01.SqlDataProvider Success
00:00:07.218 -   Executing Script: 04.05.00.SqlDataProvider Success
00:00:07.999 -   Executing Script: 04.05.01.SqlDataProvider Success
00:00:08.124 -   Executing Script: 04.05.02.SqlDataProvider Success
00:00:08.374 -   Executing Script: 04.05.03.SqlDataProvider Success
00:00:08.437 -   Executing Script: 04.05.04.SqlDataProvider Success
00:00:08.484 -   Executing Script: 04.05.05.SqlDataProvider Success
00:00:08.499 -   Executing Script: 04.06.00.SqlDataProvider Success
00:00:09.187 -   Executing Script: 04.06.01.SqlDataProvider Success
00:00:09.187 -   Executing Script: 04.06.02.SqlDataProvider Success
00:00:09.202 -   Executing Script: 04.07.00.SqlDataProvider Success
00:00:09.421 -   Executing Script: 04.08.00.SqlDataProvider Success
00:00:09.531 -   Executing Script: 04.08.01.SqlDataProvider Success
00:00:09.577 -   Executing Script: 04.08.02.SqlDataProvider Success
00:00:09.593 - Performing General Upgrades
00:00:10.468 - Loading Host Settings:
00:00:10.656 - Configuring SuperUser:
00:00:15.030 - Synchronizing Host Files:
00:00:15.234 - Installing Modules:
00:00:15.234 - Executing Additional Scripts:
00:00:15.234 -   Creating Portal: My Website
00:00:15.640 -   Error: An Unexpected Error Occurred During Registration. Please Contact The Portal Administrator For Futher Information.
00:00:15.640 -   Portal failed to install:Error!
00:00:15.640 - Installing Optional Resources:

Installation Complete

We also see the following when visiting the site after the failed installation (we changed RemoteOnly to Off):

Object reference not set to an instance of an object.

 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) in C:\hgwork\Trunk\DotNetNuke.Library\DotNetNuke.Library\Components\Portal\PortalSettings.vb:605
   DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) in C:\hgwork\Trunk\DotNetNuke.Library\DotNetNuke.Library\Components\Portal\PortalSettings.vb:551
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) in C:\hgwork\Trunk\DotNetNuke.Library\DotNetNuke.HttpModules\UrlRewrite\UrlRewriteModule.vb:464
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

 I'm pretty sure that error message is caused by the fact that no portals exist.

I have found that there are a few problems with this happening:

1. That it happens with no real explanation why.
2. That there is no way to re-run the installation and attempt to finish whatever failed.  I have to delete the database and start over.
3. That there isn't a better handling of the situation where no portal gets created during installation. It should give you the option of attempting to re-install the default.

One disturbing thing was that I had seen on DNNCreative, a developer mentioning that the source version offered for download is never to be used to install instances of DNN.  If that's the case, it should have been made very clear on dotnetnuke.com.  We need to use the source as we need to be able to change the source code as needed and track it via source control (yes, we manage upgrades carefully with our local changes).  If it's not the case, which I hope it isn't, does anyone have any idea why the above error is happening?  Note, we are *not* using the Install Wizard.  We have that turned off in Web.config.

 
New Post
7/21/2008 1:59 PM
 

I am not 100% on this but the initial error might be because the user account didnt have enough rights to the DB... Deleting the current DB and creating a new one should fix the problem of not being able to reinstall the app.

 

 
New Post
7/21/2008 2:10 PM
 

The database user in question is marked as the owner of the database.  However, I can have this database deleted and re-created by our DBA in an attempt to fix it.

The problem with your theory, however, is that all of the tables, sprocs, etc. are properly created during the install and there is data in some of the tables (like Version, for  example).  The only thing it seems to have a problem with is setting up the initial default portal, which becomes the root portal of the install.

Mobious wrote

I am not 100% on this but the initial error might be because the user account didnt have enough rights to the DB... Deleting the current DB and creating a new one should fix the problem of not being able to reinstall the app.

 
New Post
7/22/2008 6:40 AM
 

We re-created the database and still get the same error.  It is not a database permissions problem.

At the moment, the only solution we have is to take a copy of an "empty" DNN database that had been set up a while ago with no pages other than the default and upgraded to 4.8.2.

Now, I'm not sure if this helps anyone with determining what the problem is, but our copy of source had been upgraded sice 4.6.2, I believe, possibly earlier.  Could that have anything to do with the problems we're having?  I've checked the default template it uses to set up the default portal, however, and it is the latest version included with the source.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Auto-Install FailsAuto-Install Fails


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