Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, July 4, 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: 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 3:06 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. All users were imported using Workgroup Administrator "Import" tool from an excel spreadsheet. 'ADMIN' is the managerid for all users.

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)
[Reply][Quote]
Byrnes
Posts: 43
 
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: 27 Aug 09 5:04 PM
I had this exact same problem but I was able to fix it.

It stems from user account profiles (in the Administrator) being incorrect in some manner regarding either who their manager is, or the profile of their manager.

I was unable to find and visual discrepancies through the front end but I was able to solve this by changing all active users to have 'Administrator' as their manager. I also (probably unnecessarily) deselected the 'Is Manager' checkbox for all users as well.

After this was done I the error was fixed. At this point you can then go back and restate the manager settings as needed and you should be in good shape.

Hope that helps someone...

Byrnes
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
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: 28 Aug 09 2:30 PM
I on the other hand was unable to fix this problem 100% (it failed once I added compilation to my site).

I had performed the steps outlined above and got it to work until I pre-compiled.
Same IIS Site, same SLX Server and Database, same users.

I was able to re-deploy with no compilation and errors would go away.

I didn't want to spend much time on my end so just worked my way around it.





[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/4/2025 6:36:03 PM