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 ...Installation Issue (Only appearing in localhost, genrating an Object Ref Error otherwise)Installation Issue (Only appearing in localhost, genrating an Object Ref Error otherwise)
Previous
 
Next
New Post
8/5/2008 4:10 PM
 

Ok, so I have seen this same error refernced several times on the forum but nobody seems to have answered the issue directly. I am a LAMP developer so my knowledge of a .NET and as a matter of fact this is my first foray into windows servers and .NET development. I followed the installation instructions for the INSTALL package. Just in case someone gets the same errors from another package. I followed the instructions for installing that package without Visual Studio that was linked to out of the install forum and evenrything went smoothly, I clicked through the installer and setup user and host accounts. The is up and working perfectly except... I can only view it though the http://localhost/DotNetNuke url. Any attempt to access the site through the internet creates the following error:

 

Server Error in '/DotNetNuke' Application.

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


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

 

Now, I looked through some of the Virtual Directory settings in IIS (version 6 on a 32bit installation of windows 2003) and couldn't find if maybe I was missing something that was keeping outside traffic from accesing my site but could not identify a problem. As I said, I am a LAMP developer and though using IIS is fairly straight forward I am fairly sure my error lies in the way I have setup access to that VD.

Here are some relevent details:

Directory structure: allows annonymous access

All IP's are granted access

Users are granted read and write privilages but not executables.

 

I will continue to ponder the issue but if anyone has any suggestions or needs more info to help me out feel free to post. Sorry for the verbose nature of this post so I wanted to make sure I documented.

 

 
New Post
8/6/2008 3:42 AM
 

First go to Portals in Host menu, select your portal, scroll down settings page to the far end and add the new address as portal alias. Save changes.

In your Name Server and IIS you need to make sure, that the domain address is forwarding to the IIS web site containing DotNetNuke (which should not reside inside a virtual directory, if you want to access it without added /dotnetnuke folder name).


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/6/2008 1:34 PM
 

Thanks, I am going to attempt a clean installation with your recomendatations. Though it is not my intention to make DNN the focal point of my site for now. It should be in its own directory for now. Does that mean it should still be installed as a virtual directory?

 
New Post
8/7/2008 10:16 AM
 

Here, is how I resolved my issue. I dumped everything and started over, making sure to pay attention to way the VD was setup. Since DNN will be operating in its own directory on my site I made sure to unzip the files directly into my C:\inetpub\wwwroot\DotNetNuke folder. I made sure to adjust the permissions so the that IUSER, ASP.NET and NETWORK service were given read, write and mod control. Once the VD was setup, here was the IMPORTANT PART and I am not sure if this applies to everyone but it is what gave me such a headache. I was running the installer through the localhost which would result in a site viewable only through the localhost later. When I would try to access the site over the web the error in my first post was generated. I went back and corrected the alias as suggested the point to my site name (I image this adjusts the relative links within the site) it did not correct the answer. I am not sure if it was because of something in the application of it was something else i had done in my attempts to fix it. That being said, I had read in my research some people suggest that if you run into a problem in the installation that sometimes it is best to dump the install and the DB and start over from scratch. I tend to agree with that, once I sorted out my issue it was a fairly painless install. Thanks again to the mod who responded to my question.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Installation Issue (Only appearing in localhost, genrating an Object Ref Error otherwise)Installation Issue (Only appearing in localhost, genrating an Object Ref Error otherwise)


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