07-20-04 10:53 PM
alien2_51 wrote:
> I cannot seem to get a Profile object intitialized with any data,
> Properties.Count is always 0. I've created a new .Net project in an
> exisitng and un modified version of the SupplierAD solution site. I'm
> primarily interested in using the Active Directory Group Management
> resource in the solution site. I want my site to use Windows
> Authentication, all I want to do is create a base page class that
> pulls the trading partner number from the current users profile in
> the page_load and stores it in a protected member to be used by pages
> that inherit from it.
>
> Sounds pretty simple...
>
> I'm using this method.
> Use this method to retrieve the ProfileObject object corresponding to
> the specified primary key value and schema type.
>
> Definition
> [Visual Basic .NET]
> Imports Microsoft.CommerceServer.Interop.Profiles
> .
> Public Function GetProfile(
> sValue as Object,
> bstrType As String
> Optional bReturnError As Boolean
> ) As IProfileObject......In the remarks section I see this line that
> says to call Initialize, There is no method called Initialize in this
> assembly... Only in the COM objectCall the Initialize method before
> you use this ProfileService method.
I made a post on my blog a while back about creating a profilecontext
outside of the ASP.NET context. It seems to me that it may be useful
for you so here is the link
http://www.publicvoid.dk/PermaLink,...3-aa66-b0991c02
f29c.aspx
--
Med venlig hilsen,
Søren Lund
http://www.publicvoid.dk
[ Post a follow-up to this message ]
|