Microsoft Developer Network > Forums Home > Commerce Server Forums > Commerce Server 2002 and Earlier > 'System.NullReferenceException' on Commerce Server RunTime Profiles
Ask a questionAsk a question
 

Question'System.NullReferenceException' on Commerce Server RunTime Profiles

  • Monday, March 30, 2009 2:54 PMsimonvinyl Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi We have recently moved our CS 2002 FP1 servers and split out our Integration to a seperate box and now i am getting 1000s of : 

    Type : System.NullReferenceException, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message : GetUserProfile() userId can not be null for xxxxxxx
    Source : SnowValley.Lakeland.Extensions
    Help link :
    TargetSite : Microsoft.CommerceServer.Runtime.Profiles.Profile GetUserProfile(System.String, System.Data.DbType, System.Object)
    Stack Trace :    at SnowValley.Lakeland.Extensions.Integration.IntegrationManagerBase.GetUserProfile(String userObjectColumnName, DbType dbType, Object userObjectValue)
       at SnowValley.Lakeland.Extensions.Integration.IntegrationCustomerManager.UpdateCustomerDetails(CustomerMessage customerMessage)
       at SnowValley.Lakeland.Integration.Website.Erp2Muse.Erp2MuseCustomerTask.Customer(XmlReader message)

    Additional Info:

    FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=1.1.0.0, Culture=neutral,


    After debugging it is apparent that (in bold)

    Microsoft.CommerceServer.Runtime.Profiles.Profile GetUserProfile()

    Is the null value appearing in the stack

    Why is this happening?

    Any Ideas?

    Thanks

    Simon


    simonvinyl