I'm having a problem with the GetPortalAliasArrayByPortalID API call. Apparently it is returning nothing for my portal ID, however I have two aliases defined.
This call is being made by the Portal Store module 6.59 on my DNN 3.2.2 installation. I have the basic store configuration done, and created a catalog and product. I have two portal aliases, www.goldenjoysticks.com and goldenjoysticks.com. I don't think it matters, but I also have Catalook installed and used on a different page on this site. I have a total of 4 parent portals on my installation and no children portals.
When I try to view the catalog in the main store module, the module errors with this error:
A critical error has occurred.
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
And I get this error in the log (followed by Richard Cox's (Portal Store) response) :
AssemblyVersion: 03.02.02
Method: System.Collections.ArrayList.get_Item
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 5
PortalName: Golden Joysticks
UserID: 1
UserName: host
ActiveTabID: 279
ActiveTabName: Portal Store
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.goldenjoysticks.com/PortalStore/tabid/279/ctl/Edit/mid/720/Default.aspx
ExceptionGUID: 26d0de04-b041-4f37-b0a4-3cf0bdbfe549
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
Message: DotNetNuke.Services.Exceptions.PageLoadException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.ArrayList.get_Item(Int32 index) at ByDesign.BDPDT.Portals.DNN32.GetPortalInfo(Int32 portalid) at ByDesign.PortalStore.UIFunctions.DashboardContentUpdate(Int32 currenttabid, Int32 portalid, Int32 userid, String FeaturedTemplate, String TopTemplate, String FormatText, StoreDetails Store, Catalog catalog, Int32 selectedcurrency, HttpContext currContext, String RootPath) at ByDesign.PortalStore.ProductObjects.ProductListIntroText.InitControl() at ByDesign.PortalStore.MainProductList.InitControls(Boolean nomenu) at ByDesign.PortalStore.MainProductList.Page_Load(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain() --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: ARA
Richard Cox:
well, something odd with your DNN config and here's the reason why:
GetPortalAliasArrayByPortalID(portalid) is returning no values for your portal.
which is an impossibility - and yes, that's a DNN API call
What else should I look for? I really don't want to remove the Catalook installation because it is a beast to configure and I do have it working.
Thanks in advance.
Jereme