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 2: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 6:22 PM
 
[bump]
 
New Post
10/24/2011 6: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
Extensions Forge Projects - UserExport, ContentDeJour, ePrayer and ImageEditorControl
 
New Post
2/7/2012 10:30 PM
 

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)


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me
Have Someone Contact Me
DotNetNuke Store

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Exact Target Exec Alert
r2integrated
Telerik JustCode Free

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.