Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, February 19, 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!
 Architect Forums - SalesLogix .NET Extensions
Forum to discuss the use of .NET Extensions in SalesLogix version 7 and higher. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix .NET Extensions | New ThreadView:  Search:  
 Author  Thread: Unable to cast object of type 'Sage.SalesLogix.Security.User' to type 'Sage.SalesLogix.Security.Manager' when opening activities main view?
NixDev
Posts: 98
 
Unable to cast object of type 'Sage.SalesLogix.Security.User' to type 'Sage.SalesLogix.Security.Manager' when opening activities main view?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Aug 09 2:26 PM
Hi All,
I'm seeing a weird error on Activities mainview (out of the box, no customizations at all). When I click on it I get an exception: "Unable to cast object of type 'Sage.SalesLogix.Security.User' to type 'Sage.SalesLogix.Security.Manager'". The problem "seems" random. I can get rid of it by deleting users, but sometimes not even then. What I mean is: I haven't been able to isolate 1 user that causes this problem. Any ideas?


Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 8/4/2009
Time: 2:57:18 PM
User: N/A
Computer: myserver
Description:
Event code: 3005

Event message: An unhandled exception has occurred.
Event time: 8/4/2009 2:57:18 PM
Event time (UTC): 8/4/2009 6:57:18 PM
Event ID: dadb25b7d45e4c06975e3f5f65bd6336
Event sequence: 125
Event occurrence: 1

Event detail code: 0

Application information:

Application domain: /LM/W3SVC/1624304011/Root/SlxClient-4-128938851208943602

Trust level: Full
Application Virtual Path: /SlxClient

Application Path: c:\Inetpub\wwwroot\SlxClient\
Machine name: myserver
Process information:
Process ID: 10196
Process name: w3wp.exe

Account name: mydomainj\WebDLL

Exception information:

Exception type: PropertyAccessException

Exception message: Invalid Cast (check your mapping for property type mismatches); setter of Sage.SalesLogix.Security.User
Request information:
Request URL: http://localhost:3333/SlxClient/ActivityManager.aspx
Request path: /SlxClient/ActivityManager.aspx
User host address: 127.0.0.1
User: Admin
Is authenticated: True
Authentication Type: Forms
Thread account name: mydomain\WebDLL
Thread information:
Thread ID: 1

Thread account name: mydomain\WebDLL

Is impersonating: False

Stack trace: at NHibernate.Tuple.Entity.PocoEntityTuplizer.SetPropertyValuesWithOptimizer(Object entity, Object[] values)
at NHibernate.Tuple.Entity.PocoEntityTuplizer.SetPropertyValues(Object entity, Object[] values)
at NHibernate.Persister.Entity.AbstractEntityPersister.SetPropertyValues(Object obj, Object[] values, EntityMode entityMode)
at NHibernate.Engine.TwoPhaseLoad.InitializeEntity(Object entity, Boolean readOnly, ISessionImplementor session, PreLoadEvent preLoadEvent, PostLoadEvent postLoadEvent)
at NHibernate.Loader.Loader.InitializeEntitiesAndCollections(IList hydratedObjects, Object resultSetId, ISessionImplementor session, Boolean readOnly)
at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies)
at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies)
at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters)
at NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters)
at NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet`1 querySpaces, IType[] resultTypes)
at NHibernate.Loader.Criteria.CriteriaLoader.List(ISessionImplementor session)
at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results)
at NHibernate.Impl.CriteriaImpl.List(IList results)
at NHibernate.Impl.CriteriaImpl.List[T]()
at Sage.Platform.NHibernateRepository.NHibernateRepository`1.FindAllImplGeneric()
at Sage.Platform.NHibernateRepository.NHibernateRepository`1.Sage.Platform.Repository.IRepository.FindAll()
at SmartParts_TaskPane_ActivityFilters.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.UI.ControlCollection.Add(Control child)
at Sage.Platform.WebPortal.Workspaces.TaskPaneItem.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Custom event details:
[Reply][Quote]
NixDev
Posts: 98
 
Re: Unable to cast object of type 'Sage.SalesLogix.Security.User' to type 'Sage.SalesLogix.Security.Manager' when opening activities main view?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Aug 09 3:05 PM
Sorry, wrong forum.
[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): 2/19/2025 4:43:58 PM