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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Error:Parameter name: index at System.Web.UI.ControlCollection.get_Item(Int32 index)Error:Parameter name: index at System.Web.UI.ControlCollection.get_Item(Int32 index)
Previous
 
Next
New Post
10/20/2011 5:11 AM
 

I'm getting a lot of errors logged, like the one below.
It happens when i enter any page, even pages with the DNN 6 default skin, without any modules on the page.
Can't figure out why. Any idea...?



AssemblyVersion: 6.0.2
PortalID: 0
PortalName: ---------
UserID: 1
UserName: user
ActiveTabID: 48
ActiveTabName: Log Viewer
RawURL: /Admin/LogViewer/tabid/48/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.domain.com/website/Forum/tabid/55/Default.aspx
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 217906af-0a04-4136-b25b-0407e40304d5
InnerException: Specified argument was out of the range of valid values. Parameter name: index
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.ControlCollection.get_Item
StackTrace:
Message: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index at System.Web.UI.ControlCollection.get_Item(Int32 index) at DotNetNuke.UI.Containers.Container.GetPortalModuleBase(UserControl control)
Source:
 
New Post
10/24/2011 9:22 PM
 
[bump]
 
New Post
10/24/2011 9:52 PM
 
The method DotNetNuke.UI.Containers.Container.GetPortalModuleBase(UserControl control) was deprecated way back in DNN 5.00.00. It does not appear to be referenced from any component or control in DNN 6.00.02 so my first suspicion is that it is being used in a legacy container or skin object.

Is this a new install of DNN 6.00.02 or was it an upgrade from an earlier (5.x) installation?

You indicated that the error still occurred after switching to the default 6.0 skin. Did you switch both the portal and edit (formerly called admin skin) skins to the default 6.0 skin? Did you switch the site containers to the default 6.0 containers as well?

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
2/8/2012 2:30 AM
 

I have similar issue I'm using this constructor in a module and this will used in many places.. when I'm upgrade DNN to 5.4 um getting this

Obsolete:Deprecated in 5.0.Shouldn't need to used anymore.ContainerObjects(IContainerControl implimentations)have a property ModuleControl


Error in GetPortalModuleBase method so I need to modify this and do not know what to do plz help??

ECPortalModuleBase  - is a class which enherited PortalModuleBase 

public ECPortalModuleBase InnerModule
        {
            get
            {
                try
                {
                    if (_module == null)
                        _module = (ECPortalModuleBase)DotNetNuke.UI.Containers.Container.GetPortalModuleBase(this);
                }
                catch
                {
                    throw new PredatorPortalException("Converting module to ECPortalModuleBase failed in ModuleTitle Skin Object");
                }
                return _module;
            }
        }


 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Error:Parameter name: index at System.Web.UI.ControlCollection.get_Item(Int32 index)Error:Parameter name: index at System.Web.UI.ControlCollection.get_Item(Int32 index)


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