DNN Forums

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

DNN Upgrade

 4 Replies
 1 Subscribed to this topic
 33 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 6
New Around Here

The upgrade wizard seems to complete without issue but when I click to open site it will not load and the followin error I see in the logs.

 

 DotNetNuke.Services.Exceptions.Exceptions - System.Web.HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

Hello!  

First, please know that I moved your post to the upgrade forum since it fits better there.  😉 

Unfortunately, that error is quite common in .NET and could reference anything.  Did you upgrade your extensions before upgrading DNN?  This may be the root cause, if you didn't.  

Maybe the following upgrade resources might help you:  

Veteran Member
Posts: 360
Veteran Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Posted By Jim McIntosh on 4/17/2024 1:11 PM

The upgrade wizard seems to complete without issue but when I click to open site it will not load and the followin error I see in the logs.

 

 DotNetNuke.Services.Exceptions.Exceptions - System.Web.HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

 

My first guess would be a theme issue.  You could try switching to the default theme (Xcillion if DNN 9.x) and see if the problem persists.  If a custom theme is used on all pages and the site will not load at all, you may need to change the theme for the site or a page in the database directly.

 

David Poindexter


Creator:


New Around Here
Posts: 6
New Around Here

There does seem to be some refernces to skins ....

at DNNGo.Modules.xPlugin.BaseSkin.GetHostSetting(String key)
   at DNNGo.Modules.xPlugin.BaseSkin.get_CrmVersion()
   at DNNGo.Modules.xPlugin.BaseSkin.LoadScript(String JsName)
   at DNNGo.Modules.xPlugin.Skin_Menus.Page_Init(Object sender, EventArgs e)"
2024-04-17 13:52:50,307 [Thread:23][FATAL] DotNetNuke.Services.Exceptions.Exceptions - System.Web.HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

Yeah, you probably need to upgrade all third-party and custom extensions before you start upgrading.   ☹️

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