Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, July 6, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: SLX 7.5: Error with extension table. Message: Unable to cast object of type 'Sage.SalesLogix.Entities.Account2' to type 'System.Collections.ICollection'.
Ali Youssefi
Posts: 18
 
SLX 7.5: Error with extension table. Message: Unable to cast object of type 'Sage.SalesLogix.Entities.Account2' to type 'System.Collections.ICollection'.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 May 09 2:20 PM
Unable to cast object of type 'Sage.SalesLogix.Entities.Account2' to type 'System.Collections.ICollection'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Unable to cast object of type 'Sage.SalesLogix.Entities.Account2' to type 'System.Collections.ICollection'.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:







Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[InvalidCastException: Unable to cast object of type 'Sage.SalesLogix.Entities.Account2' to type 'System.Collections.ICollection'.]
Sage.Platform.WebPortal.Binding.WebEntityListBindingSource.GetChildByIndex(Int32 index) +123
Sage.Platform.WebPortal.Binding.WebEntityListBindingSource.GetData(Int32 maximumRows, Int32 startRowIndex, String sortProperty, SortDirection sortDirection, Boolean asComponentView) +376
Sage.Platform.WebPortal.Binding.WebEntityListBindingSource.GetData(Int32 maximumRows, Int32 startRowIndex, Boolean asComponentView) +73
Sage.Platform.WebPortal.Binding.WebEntityListBindingSource.OnCurrentSourceSet() +886
Sage.Platform.WebPortal.Binding.WebEntityBindingSource.SetCurrentSource(Object entity) +52
Sage.Platform.WebPortal.Binding.WebEntityBindingSource.set_SourceObject(Object value) +17
ASP.OutsideContacts.QFDataSource_OnCurrentEntitySet(Object sender, EventArgs e) +48
Sage.Platform.EntityBinding.EntityBindingSource.SetCurrentEntity(Object entity) +198
Sage.Platform.EntityBinding.EntityBindingSource.set_Current(Object value) +7
Sage.Platform.WebPortal.SmartParts.EntityBoundSmartPart.OnLoadCurrentEntity() +41
Sage.Platform.WebPortal.SmartParts.EntityBoundSmartPart.OnLoad(EventArgs e) +92
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
============================================================================================

Hi all,
Above is the error page. I don't know what happened. Account 2 is an entity that is a extension of Account. For some reason this appears anytime now, it did not before. I did not add Account 2 recently, it has been apart of my project since the beginning. Any ideas?
Thanks in advance!

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 7/6/2025 7:12:53 AM