Commerce Server General - Urgent: ProfileSystem in .Net namespace using SupplierAD solution site

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > July 2004 > Urgent: ProfileSystem in .Net namespace using SupplierAD solution site





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Urgent: ProfileSystem in .Net namespace using SupplierAD solution site
alien2_51

2004-06-26, 10:49 am

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.


Sudha Raghavan [MSFT]

2004-06-28, 7:29 pm

Søren Lund

2004-07-20, 5: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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com