7/6/2025 6:28:52 AM
|
|
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!
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.
|
|
|
|
SLX 7.5: Error with extension table. Message: Unable to cast object of type 'Sage.SalesLogix.Entities.Account2' to type 'System.Collections.ICollection'.
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!
|
|
|
|
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!
|
|
|
|
|
|
|
|