Urgent: ProfileSystem in .Net namespace using SupplierAD solution site
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > Urgent: ProfileSystem in .Net namespace using SupplierAD solution site




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:49 PM

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.







[ Post a follow-up to this message ]



    RE: Urgent: ProfileSystem in .Net namespace using SupplierAD solution site  
Sudha Raghavan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 12:29 AM






[ Post a follow-up to this message ]



    Re: Urgent: ProfileSystem in .Net namespace using SupplierAD solution site  
Søren Lund


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:48 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register