DNN Forums

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

NullReferenceException in DotNetNuke.UI.Containers.Title.OnPreRender After Upgrade to DNN 10.1.1

 4 Replies
 0 Subscribed to this topic
 19 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 9
New Around Here
New Poster
New Poster
Congrats on posting!

Hello,

I recently upgraded my DNN website from version 9.13.9 to 10.1.1, and I’m encountering the following error during page rendering:

System.NullReferenceException: Object reference not set to an instance of an object.
   at DotNetNuke.UI.Containers.Title.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.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.d__249.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Util.WithinCancellableCallbackTaskAwaitable.WithinCancellableCallbackTaskAwaiter.GetResult()
   at System.Web.UI.Page.d__523.MoveNext()
   --- End of inner exception stack trace ---



This seems to be triggered by the DotNetNuke.UI.Containers.Title control during the OnPreRender phase.

I’ve checked for custom containers and modules, and the error persists across multiple pages. Everything was functioning normally prior to the upgrade.

Can you please advise:

  • If this is a known issue with version 10.1.1?

  • Whether there are any changes to container handling or the Title control that could cause this?

  • Any recommended fixes or workarounds

Let me know if more information is needed.

Thank you for your assistance.

Best regards

 

Growing Member
Posts: 75
Growing Member

Can you post the registrations that are on top of the used container?

New Around Here
Posts: 1
New Around Here
New Member
New Member
You are a new member!

I am getting this same error when I perform a Test upgrade locally.

It seems as though any module container that uses a Title will break the entire page causing a 500 error.

AbsoluteURL:/Default.aspx
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:3702b74a-9c21-436d-9e60-3011229b05eb
AssemblyVersion:10.1.2
PortalId:1
UserId:-1
TabId:54
RawUrl:/Default.aspx?tabid=54&error=An+unexpected+error+has+occurred&content=0
Referrer:https://dnnhost2test.local/About-Us
UserAgent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
ExceptionHash:GFbP3h6hxc0I0yURxtHhLTaYhx4=
Message:Object reference not set to an instance of an object.

StackTrace:
InnerMessage:Object reference not set to an instance of an object.

InnerStackTrace:

at DotNetNuke.UI.Containers.Title.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.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.d__249.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Util.WithinCancellableCallbackTaskAwaitable.WithinCancellableCallbackTaskAwaiter.GetResult()
at System.Web.UI.Page.d__523.MoveNext()
Source:
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:
Server Name: SERVERNAME

In the affected module's settings, so long as I set "Module Container" to "" or to something like "Xcillion - NoTitle" then everything appears to work normally. If I select any module container that has a title, it gives the above error.

For others with this issue who are looking for a workaround. You could remove all the module containers with titles prior to updating, or if you've already updated and you have at least one unaffected page (like your login page maybe) and you can log in and Navigate to Pages > "Page Name" > Advanced, and update the module settings on any given page here and remove the module containers with titles.

I have a rather large website where removing the titles from every module isn't a viable option.

This is the only other person I see discussing this issue, so I haven't been able to resolve it for myself.

Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

That's weird, I just tested the Xcillion H2 Title container on DNN 10.1.2 and it works as expected.
You don't have Apollo Localization on this site do you, or any other extension that manipulates the content?
Can you check if the register looks like this in the container you use?
https://github.com/dnnsof...ainers/title.ascx#L2

Are there specific types modules with which you have this issue?

Can you try if this also happens on a newly create page with a new module?




 

Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!
Posted By Shivam S on 10/13/2025 12:06 PM
  • If this is a known issue with version 10.1.1?

No, it's not..
Are these Multi language sites?

 

 

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