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 ...Object reference not set to an instance of an object Object reference not set to an instance of an object
Previous
 
Next
New Post
11/9/2006 5:36 AM
 

It looks like you are unable to log into your site, so going to Admin > Log Viewer is out of the question.

The error indicates that there is something missing in the portal settings or portal alias. I recommend examining the records in the Portals and PortalAlias tables for your site. If you can compare these records to the records in a working DNN database that would help.

If you change the data in either table you may have to "restart" DNN for your change to take effect. To do this, open the web.config file (which is in the root DNN folder) in Notepad, and resave the file (without making any changes to it).

 
New Post
11/9/2006 10:44 PM
 
I saw the table Portals and PortalAlias tables and they look fine to me
Any other suggestions?
 
New Post
11/10/2006 5:12 AM
 

Another idea:

The method that is causing the problem is:
DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo)

I think the error "Object reference not set to an instance of an object" indicates that when DNN calls this method nothing is returned. Now this method I believe calls the SQL stored procedure GetPortalByTab (this is my guess because the parameters match the method's parameters). So why don't you run this procedure and see if you get 0 rows back. I am guessing you will, so then the next step is to look at the SQL of the procedure and figure out why it is returning 0 rows.

You need to run the procedure with the TabID of the page that should be loading when you start DNN, and the address of your site. You can find the TabID by running SELECT * FROM Tabs. For example:

exec dbo.GetPortalByTab 36, 'www.mysite.co.uk'

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