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  |  

telerik -- supercharge your DNN websites
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  An error has occurred
Previous Previous
 
Next Next
New Post 7/16/2008 5:09 AM
User is offline ruslan
9 posts
234
10th Ranked


An error has occurred 

i got this error message , can anyone tell me the problem

 

An error has occurred.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Skins.Controls.TreeViewMenu.BuildTree(DNNNode objNode, Boolean blnPODRequest) in C:\netduke\Admin\Skins\TreeViewMenu.ascx.vb:line 309 at DotNetNuke.UI.Skins.Controls.TreeViewMenu.Page_Load(Object sender, EventArgs e) in C:\netduke\Admin\Skins\TreeViewMenu.ascx.vb:line 422 --- End of inner exception stack trace ---

 
New Post 7/16/2008 7:30 AM
User is offline Jeff Cochran
1405 posts
6th Ranked


Re: An error has occurred 

The problem is you have an object reference not set to an instance of an object.  Something within your tree menu.  If we knew what you were doing when it happened we might be able to help more.

Jeff

 
New Post 9/14/2008 7:46 AM
User is offline alicia
2 posts
10th Ranked


Re: An error has occurred 

It is a problem with how the TreeViewMenu HTML tag has been defined in the VerticalMenu control.

The problem is, in fact, 2 folded:

1. The first part is in the TreeViewMenu control, BuildTree method, where the Level.ToLower method is used, regardless of the Level value. When 'Level' property is null, the BuilTree method will raise the above exception. So first step would be to check the Level property before using ToLower on it. And that will take care of the Exception.

2. The second part lays in the actual definition of the dnn:TreeView HTML tag in the Vertical Menu ascx control. In earlier versions level property was defined as 'root', but the later version will simply define only ID and Runat properties. If you define level='root' in the dnn:TreeView tag, then you won't see the exception even if you skip #1.

Hope it helps,

Alicia

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  An error has occurred
 


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.

 


Get Smarter Mail, SmarterStats, SmarterTickets
Windows mail server, web log analytics, and customer service management software - Free Editions Available!
www.smartertools.com
DotNetNuke Modules, Skins, Training and Consulting
If you want DotNetNuke done right then look no further. Developed Solutions provides module development, skin design, user and developer training and consulting. Based in Adelaide, Australia, we offer our services worldwide.
www.developedsolutions.com.au
Venexus, Inc.
Need custom a custom DotNetNuke module? From module planning to deployment, including training and support, Venexus developers deliver end-to-end web solutions on time and on budget.
www.venexus.com

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