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 ...Portals error: Object reference not set to an instance of an objectPortals error: Object reference not set to an instance of an object
Previous
 
Next
New Post
3/15/2006 11:41 AM
 

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) +114
   DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +93
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +3718
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87


Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

I have been trying for three days to get this installed.  I have read the install guide many times and searched these forums like crazy and I cannot find a solution to this.  The 3.2.2 install says it was asuccess even though there was a message about a portal not being created.  I have deleted and re-added the files to my server many many times as well as dropping my database twice to make sure it was clean.  In VS2003 I notice that the Portals\_default directory has many different files under it, but the Portals\0 has only a few .gif files.  I am about ready to give up.  Can anybody help please?  Thanks.

 
New Post
3/15/2006 6:36 PM
 

It's a permissions problem.  The message about the portal not being created and then the error you are getting are a dead give away.  Having the source version is just obscuring it a little bit. 

The install tries to create the Portals/0 directory and then fills in some information in the Portalalias table.  But that second part is never getting a chance to run.

Make sure that the users mentioned in the documentation have all the rights they need to create a folder in your root and you should be good.

 

Cheers,


Paul Davis
 
New Post
3/15/2006 11:32 PM
 

I am on 1and1.com servers and I have given both IUSR and NETWORK SERVICE all permissions to my entire dotnetnuke directory.  When I try to run install again the page stays blank.  If I try to run "InstallResources" it runs but I get the following:

00:00:03.718 - Creating Portal: DotNetNuke Small Business Site
00:00:07.890 - Error: Violation of UNIQUE KEY constraint 'IX_dnn_PortalAlias'. Cannot insert duplicate key in object 'dnn_PortalAlias'. The statement has been terminated.
00:00:07.890 -   Portal failed to install:
00:00:07.890 - Installing Portals:
00:00:07.890 - Creating Portal: DotNetNuke Personal Site
00:00:10.968 - Error: Violation of UNIQUE KEY constraint 'IX_dnn_PortalAlias'. Cannot insert duplicate key in object 'dnn_PortalAlias'. The statement has been terminated.
00:00:10.968 -   Portal failed to install:
00:00:10.968 - Installing Portals:
00:00:10.968 - Creating Portal: DotNetNuke Club Site
00:00:14.218 - Error: Violation of UNIQUE KEY constraint 'IX_dnn_PortalAlias'. Cannot insert duplicate key in object 'dnn_PortalAlias'. The statement has been terminated.
00:00:14.218 -   Portal failed to install:

Is there something I need to reset, or do I need to restart the whole process of uploading files over again?  I sincerely appreciate your continued help.  Thanks.

 
New Post
3/16/2006 1:59 AM
 

Gidday,

I'm new to all this and am having exactly the same problem. I have DNN 3.2.2 on a local Win2K server with SQL Server 2K. It has installed fine and I have given the ASPNET user (indeed EveryOne) Full Control over the appliction root and children folders.

Can someone explain what permissions need to be applied to whom.

Thanks

David

 
New Post
3/16/2006 3:19 AM
 

I have solved the issue. It is about permission (in particular on the Portals subdirectory). The installation instructions are confusing!! The permissions need to be set BEFORE the install is run.

I deleted everything and installed it all again but before I ran the install scripts I changed the permission on the root and child subdirectories. The result was that when the install was complete it reported that it had created Portal 0 and the '0' subdirectory appeared in the Portals directory. And after this I had no problems.

I hope this is helpful.

cheers

David

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Portals error: Object reference not set to an instance of an objectPortals 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