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

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrade to DNN 5.06.03 - InitializeNavControl problemUpgrade to DNN 5.06.03 - InitializeNavControl problem
Previous
 
Next
New Post
7/13/2011 6:01 AM
 
Hi everyone,

I recently upgrade my website from 4.9.0 to 5.6.3 (through 4.9.5 and 5.3.1).
Everything went well.

But when I try to access the website, I get a System.NullReferenceException.
I reinstalled it a lot of time, differently. And I always get this error.

I don't know how to fix this error.

Here is what I get, it's in Admin\Skins\Nav.ascx.vb line 177


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 175: 
Line 176: Protected Overrides Sub OnInit(ByVal e As System.EventArgs)
 Line 177: InitializeNavControl(Me, "SolpartMenuNavigationProvider")
 Line 178: AddHandler Control.NodeClick, AddressOf Control_NodeClick
 Line 179: AddHandler Control.PopulateOnDemand, AddressOf Control_PopulateOnDemand

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType,
   String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) +557
DotNetNuke.Modules.NavigationProvider.NavigationProvider.Instance(String FriendlyName) +27
DotNetNuke.UI.Skins.NavObjectBase.InitializeNavControl(Control objParent, String strDefaultProvider) +43
DotNetNuke.UI.Skins.Controls.Nav.OnInit(EventArgs e) in \Admin\Skins\Nav.ascx.vb:177

System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.AddedControl(Control control, Int32 index) +198
System.Web.UI.ControlCollection.Add(Control child) +80
DotNetNuke.Framework.DefaultPage.Page_Init(Object sender, EventArgs e) in \Default.aspx.vb:589 

System.Web.UI.Control.OnInit(EventArgs e) +99
System.Web.UI.Page.OnInit(EventArgs e) +12
DotNetNuke.Framework.PageBase.OnInit(EventArgs e) +224
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378

[PageLoadException: Object reference not set to an instance of an object.]
DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +271
DotNetNuke.Framework.PageBase. (EventArgs e) +396 System.Web.UI.Page.HandleError(Exception e) +84
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6776
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
System.Web.UI.Page.ProcessRequest() +80 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.default_aspx.ProcessRequest(HttpContext context) +37
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 


I'm sure that I've made a mistake, but I don't know where... Any Idea ?

For information :
windows 2003
IIS 6
SQLExpress 2008
for this website : Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.3618

If you need more information, please just ask.

Jaffar
 
New Post
7/14/2011 5:13 PM
 
please check the web.config and make sure you have the following entry:
 
<add type="DotNetNuke.NavigationControl.SolpartMenuNavigationProvider, DotNetNuke.SolpartMenuNavigationProvider" name="SolpartMenuNavigationProvider" providerPath="~\Providers\NavigationProviders\SolpartMenuNavigationProvider\" />

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/15/2011 8:01 AM
 
Hi !

Thanks for your answer, yes I have this entry in the web.config.

I found a solution.
It seems the error was due to the old skin.
So I deleted all skin files and replace them with those from the DNN 5.6.3 install pack.
I can now access my website.

After researching which file causes the error, I found a file with a class.
The class inherit from UI.Skins.SkinObjectBase and overload the OnLoad method.
The overload is just a basic folder browsing to randomize a logo.
The file also import DotNetNuke.Services.Vendors and DotNetNuke.UI.Skins.

I didn't create this class, so I have to check where it's used, but maybe base class or assembly  has become obsolete ?

Jaffar
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrade to DNN 5.06.03 - InitializeNavControl problemUpgrade to DNN 5.06.03 - InitializeNavControl problem


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