Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

DMX LetterBox Unhandled Error Adding Module to ContentPane
Last Post 09/30/2014 12:58 PM by Peter Donker. 3 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Larry Daniele
New Member
New Member
Posts:38


--
09/20/2014 4:18 PM
Hi Peter,

After upgrading to DMX 6.1.10 on a DNN 7.3.2 installation, we're now getting a Letterbox exception "Unhandled Error Adding Module to ContentPane". Here's the full stack trace:

DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Bring2mind.DNN.Modules.DMX.LetterBox.PortalModuleBase.UploadProvider()
at Bring2mind.DNN.Modules.DMX.LetterBox.LetterBox.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at DotNetNuke.UI.Modules.ModuleHost.InjectModuleContent(Control content)
at System.Web.UI.Control.EnsureChildControls()
at DotNetNuke.UI.Containers.Container.get_ModuleControl()
at DotNetNuke.UI.Containers.Container.ProcessModule()
at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module)
--- End of inner exception stack trace ---
at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module)
at DotNetNuke.UI.Skins.Skin.InjectModule(Pane pane, ModuleInfo module)

This then causes another General Exception:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Bring2mind.DNN.Modules.DMX.LetterBox.PortalModuleBase.UploadProvider()
at Bring2mind.DNN.Modules.DMX.LetterBox.LetterBox.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at DotNetNuke.UI.Modules.ModuleHost.InjectModuleContent(Control content)
at System.Web.UI.Control.EnsureChildControls()
at DotNetNuke.UI.Containers.Container.get_ModuleControl()
at DotNetNuke.UI.Containers.Container.ProcessModule()
at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo module)

which results in a Module Load Exception:

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 Bring2mind.DNN.Modules.DMX.LetterBox.LetterBox.Page_Load(Object sender, EventArgs e)
--- End of inner exception stack trace ---

which leads to a Page Load Exception:

DotNetNuke.Services.Exceptions.PageLoadException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. ---> System.Web.HttpException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
at System.Web.UI.ControlCollection.RemoveAt(Int32 index)
at System.Web.UI.ControlCollection.Clear()
at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.FindControl(String id, Int32 pathOffset)
at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage)
--- End of inner exception stack trace ---

which causes a page redirect loop on the url (e.g. "https://www.domain.com/Default.aspx?tabid=287&def=ErrorMessage")

which causes Firefox to display:

"The page isn't redirecting properly.
Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

I see you have a warning about upgrading to DNN 7.3 in another forum post. We had already upgraded and were using a previous version of DMX (I believe it was v6.1.6) on DNN 7.3.2 without problem. So it seems that something about the upgrade to DMX v6.1.10 may be the source of the problem. We're using LetterBox v1.4.0 from 2012. I don't see any later version, so I assume that's ok, but perhaps there's a problem in that module with respect to DMX v6.1.10.

We're doing the upgrade over the weekend to assure that we can get it working by Monday morning Eastern USA time. Any help or guidance you can give us would be appreciated. Otherwise, we'll roll back.

Thanks!

Larry
Larry Daniele
New Member
New Member
Posts:38


--
09/22/2014 2:45 PM
Doing a "repair install" or LetterBox 1.4.0 did not help.
Larry Daniele
New Member
New Member
Posts:38


--
09/22/2014 4:43 PM
In looking at the code for LetterBox ModuleBase.vb UploadProvider(), I saw that LetterboxSettings.UploadProvider could be set to "". It was currently set to "SilverlightUploadProvider" in the ModuleSettings database table for this module. So I updated it to "" in the database and the problem was "resolved".

I'm still not sure why the DMX upgrade would have affected this. I diff'ed the old and new DMX folders and only found a cosmetic string change in Upload.ascx.resx that appeared relevant. So I imagine something else more subtle is going on. But I'm good for now.
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/30/2014 12:58 PM
I think I found a bug in Letterbox. I'll upload 1.4.1 shortly.

Peter
You are not authorized to post a reply.