When I try to get the profilecontext, it throw an exception
The code is:
Dim csContext As CommerceContext
Dim profContext As ProfileContext = csContext.Current.ProfileSystem
The exception is:
System.ObjectDisposedException: Cannot access a disposed object named
"Category".
Object name: "Category".
at
Microsoft.CommerceServer.Runtime.CommerceContext.ThrowObjectDisposedException()
at Microsoft.CommerceServer.Runtime.CommerceContext.CheckState()
at Microsoft.CommerceServer.Runtime.CommerceContext.get_ProfileSystem()
Help me please
--
Regards,
Gil