DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Object Ref error upgrading 9.3

 3 Replies
 2 Subscribed to this topic
 33 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 3
New Around Here

After upgrading to DNN 9.3 from 9.1.1 I am getting this error:

<code>DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. -&#45;&#45;&gt; System.NullReferenceException: Object reference not set to an instance of an object.
    at DotNetNuke.Framework.JavaScriptLibraries.JavaScript.GetScriptVersions()
    at DotNetNuke.Framework.JavaScriptLibraries.JavaScript.Register(Page page)
    at System.Web.UI.Control.OnPreRender(EventArgs e)
    at ClientDependency.Core.Controls.ClientDependencyLoader.OnPreRender(EventArgs e)
    at DotNetNuke.Web.Client.ClientResourceManagement.ClientResourceLoader.OnPreRender(EventArgs e)
    at System.Web.UI.Control.PreRenderRecursiveInternal()
    at System.Web.UI.Control.PreRenderRecursiveInternal()
    at System.Web.UI.Control.PreRenderRecursiveInternal()
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---</code>

Any ideas/clues?

Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
Upgrading to DNN 9.2.0 and higher puts you in the realm of several breaking changes that need to be fixed.

You should check the files in portals/_default/logs to see if there is other information there that will help to identify the module/modules that need upgrading.

Step #1 would be to look at all of the installed modules and see if your modules are compatible with DNN 9.2.0 and higher. If not, you'll need to get upgraded versions of the modules and install them.
New Around Here
Posts: 3
New Around Here

That was from the Logs folder.  The website does not come up at all, and that's the only information I have.

I get a "DNN Error" with a "Return to Site" button.

 

Here are the log entries:

2020-07-27 18:03:43,189 [APPSRV03][Thread:25][FATAL] DotNetNuke.Framework.PageBase - An error has occurred while loading page.
System.NullReferenceException: Object reference not set to an instance of an object.
   at DotNetNuke.Framework.JavaScriptLibraries.JavaScript.GetScriptVersions()
   at DotNetNuke.Framework.JavaScriptLibraries.JavaScript.Register(Page page)
   at System.Web.UI.Control.OnPreRender(EventArgs e)
   at ClientDependency.Core.Controls.ClientDependencyLoader.OnPreRender(EventArgs e)
   at DotNetNuke.Web.Client.ClientResourceManagement.ClientResourceLoader.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2020-07-27 18:03:43,225 [APPSRV03][Thread:25][ERROR] DotNetNuke.Services.Exceptions.Exceptions - ~/Default.aspx?tabid=36231&error=An unexpected error has occurred&content=0
System.NullReferenceException: Object reference not set to an instance of an object.
   at DotNetNuke.Framework.JavaScriptLibraries.JavaScript.GetScriptVersions()
   at DotNetNuke.Framework.JavaScriptLibraries.JavaScript.Register(Page page)
   at System.Web.UI.Control.OnPreRender(EventArgs e)
   at ClientDependency.Core.Controls.ClientDependencyLoader.OnPreRender(EventArgs e)
   at DotNetNuke.Web.Client.ClientResourceManagement.ClientResourceLoader.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2020-07-27 18:03:43,312 [APPSRV03][Thread:9][FATAL] DotNetNuke.Framework.PageBase - An error has occurred while loading page.
System.NullReferenceException: Object reference not set to an instance of an object.
   at DotNetNuke.Framework.JavaScriptLibraries.JavaScript.GetScriptVersions()
   at DotNetNuke.Framework.JavaScriptLibraries.JavaScript.Register(Page page)
   at System.Web.UI.Control.OnPreRender(EventArgs e)
   at ClientDependency.Core.Controls.ClientDependencyLoader.OnPreRender(EventArgs e)
   at DotNetNuke.Web.Client.ClientResourceManagement.ClientResourceLoader.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2020-07-27 18:03:43,316 [APPSRV03][Thread:9][ERROR] DotNetNuke.Services.Exceptions.Exceptions - ~/Default.aspx?tabid=36231&error=terminate
System.NullReferenceException: Object reference not set to an instance of an object.
   at DotNetNuke.Framework.JavaScriptLibraries.JavaScript.GetScriptVersions()
   at DotNetNuke.Framework.JavaScriptLibraries.JavaScript.Register(Page page)
   at System.Web.UI.Control.OnPreRender(EventArgs e)
   at ClientDependency.Core.Controls.ClientDependencyLoader.OnPreRender(EventArgs e)
   at DotNetNuke.Web.Client.ClientResourceManagement.ClientResourceLoader.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2020-07-27 18:03:43,707 [APPSRV03][Thread:9][ERROR] DotNetNuke.Services.Exceptions.Exceptions - DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at DotNetNuke.Framework.JavaScriptLibraries.JavaScript.GetScriptVersions()
   at DotNetNuke.Framework.JavaScriptLibraries.JavaScript.Register(Page page)
   at System.Web.UI.Control.OnPreRender(EventArgs e)
   at ClientDependency.Core.Controls.ClientDependencyLoader.OnPreRender(EventArgs e)
   at DotNetNuke.Web.Client.ClientResourceManagement.ClientResourceLoader.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   --- End of inner exception stack trace ---
 

New Around Here
Posts: 3
New Around Here
Figured it out.

SELECT * FROM dbo.JavaScriptLibraries

And checked and I had jQuery missing, and in /Resources/Libraries there was a hick-up on the upgrade, version 1.9.1 was still there.

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved