Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Treeview and error [Object reference not set]
Previous Previous
 
Next Next
New Post 1/8/2008 10:11 PM
Resolved
User is offline whetstone
26 posts
10th Ranked


Treeview and error [Object reference not set] 

Just upgraded to DNN 4.8.0 and upgraded all the modules on the same day. Out of 12 portals, 1 is giving me an error on the admin or host pages. The regular site works fine. The error message is posted below, but basically says "Object reference not set to an instance of an object." in the treeview code. The site does use the  treeview but the treeview is not on the admin pages.  My site pages that actually use the treeview show perfectly. I can't do anything to the site without the admin pages. I have searched the Internet for 5 hours and have not resolved this. Any insight would be appreciated. Thanks.

 

 

Server Error in '/' 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:


Line 307:
Line 308:            If blnPODRequest = False Then
Line 309:                Select Case Level.ToLower
Line 310:                    Case "root"
Line 311:                    Case "child"
 

Source File: D:\hshome\datamark\rayandrain.com\Admin\Skins\TreeViewMenu.ascx.vb    Line: 309

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.UI.Skins.Controls.TreeViewMenu.BuildTree(DNNNode objNode, Boolean blnPODRequest) in D:\hshome\datamark\rayandrain.com\Admin\Skins\TreeViewMenu.ascx.vb:309
   DotNetNuke.UI.Skins.Controls.TreeViewMenu.Page_Load(Object sender, EventArgs e) in D:\hshome\datamark\rayandrain.com\Admin\Skins\TreeViewMenu.ascx.vb:422

 

 
New Post 1/9/2008 5:22 AM
Accepted Answer 
User is offline whetstone
26 posts
10th Ranked


Resolved, and here is the fix 

This one is resolved and has both elements of forgetfulness and wonder.

I had thought that the Admin skin was the default DNN blue and therefore had no treeview. With the admin pages retuning the big error shown above, I had to rely on memory that it was using the default skin.  I could not use the site settings tab in order to confirm or change that setting. - Or could I? After lots of wasted time researching the error message, I remembered I could enter the site settings by logging in to one of the other portals as host, then going to the portals page, and finally edit settings icon next to the portal with the problems.

That's when I learned that the admin skin was one of my own, not the default DNN BLue and also did have the Treeview that was causing the problem. So I changed the admin skin to DNN Blue and the error is gone!

But here is the part that makes you scratch your head in wonder. After this not-so-small success, in a bold move, I reassigned the admin skin to my problematic custom skin that contains the treeview token and found it working perfectly! I'm glad, of course. Because the custom skin is better than the DNN Blue, but I don't know why it works now when it gave me so much trouble before. So for the benefit of the next stressed DNN user with the same problem, it seems that removing the problem skin and then rechoosing it must have reset something and made it work.

 
New Post 5/7/2008 6:20 AM
User is offline Michael Moore
16 posts
10th Ranked


Re: Treeview and error [Object reference not set] 

whetstone

You seem to have Treeview experience. Can you tell me if it is a viable control in DNN? I want to use it to "tree" data on a left pane and at the last level be able to click on the bottom level item to display a "product" per say on a right pane. The data to fill the tree will be coming from a SQL database and from a few related tables. The size of the data is not very big. First level 10 nodes, second level 20 nodes max per parent and the the third level 50 max per parent. Any idea if this is doable in DNN with their Treeview control?  thank you. Michael Moore. St Paul

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Treeview and error [Object reference not set]
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


TronixSoft
Hosting for local businesses that want more from their websites.
www.TronixSoft.com
The Forerunner Network
The Forerunner Network consists of a group of Dynamic Website & Interactive Membership Portal hosting services that are managed by Forerunner Communications. Our services span a wide range of markets and enable individuals, organizations and businesses to build and manage dynamic, interactive portals and websites.
The Forerunner Network
ZLDNN.COM
We provide commercial DotNetNuke modules.
www.zldnn.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP