CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 4/10/2007 1:15:16 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 34 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
mylabruby
Asp.Net User
Web Service cannot access personal Profile properties4/10/2007 1:15:16 PM

0/0

I have a webservice that I would like to use to access some of the user's profile information, such as 'profile.birthdate'. The class doesn't seem available with it's custom properties in the .vb code of my web service - I can get some generic profile properties but nothing specific to the user or my custom properties as defined in web.config.

 I read a posting by Omar Al Zabir (here: http://dotnetusergroup.com/blogs/omar/archive/2006/09/13/237.aspx) that talks about how to create a hand-coded profile class in the App_Code directory. I could do this, but would really like to stick with the ease of use of using the web.config file to define my profile. Is there a way to refer to the properties of the profile without writing this extra code using a webservice - maybe late binding or something?

 Any help would be appreciated.

Thanks.

mylabruby
Asp.Net User
Re: Web Service cannot access personal Profile properties4/11/2007 6:14:21 PM

0/0

I managed to solve this one on my own using some code found on Omar's site (linked to above) along with some code by a comment someone else left. I came up with the following function that when placed my web service returns a fully functioning profile to the webservices methods without any custom code other than what's in web.config:

Private Function GetCurrentProfile() As ProfileCommon
Dim UserName As String = HttpContext.Current.Profile.UserName
Dim User As MembershipUser = Membership.GetUser(UserName)
Dim profile As ProfileCommon = ProfileBase.Create(User.UserName, True)
Return profile
End Function

 Problem solved!

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Microsoft SharePoint Server 2007 Bible Authors: Wynne Leon, Wayne Tynes, Simeon Cathey, Pages: 792, Published: 2007
Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 Authors: Amanda Murphy, Shane Perran, Pages: 552, Published: 2007
MCTS: Microsoft Office SharePoint Server 2007 Configuration: Exam 70-630 Authors: James Pyles, Pages: 617, Published: 2008
Beginning SharePoint 2007 Administration: Windows SharePoint Services 3.0 and Microsoft Office SharePoint Server 2007 Authors: Göran Husman, Pages: 578, Published: 2007
Beginning SharePoint Administration: Windows SharePoint Services and SharePoint Portal Server Authors: Göran Husman, Pages: 522, Published: 2006
Advances in Security and Payment Methods for Mobile Commerce Authors: Wen Chen Hu, Chung-Wei Lee, Weidong Kou, Pages: 351, Published: 2005
Usability Evaluation and Interface Design: Cognitive Engineering, Intelligent Agents, and Virtual Reality, Volume 1 Authors: Michael James Smith, Pages: 1592, Published: 2001
Tony Redmond's Microsoft Exchange Server 2003: With SP1 Authors: Tony Redmond, Pages: 1008, Published: 2004
The Internet Encyclopedia: P - Z Authors: Hossein Bidgoli, Pages: 976, Published: 2004

Web:
Web Service cannot access personal Profile properties - ASP.NET Forums Web Service cannot access personal Profile properties. Last post 04-11-2007 2:14 PM by mylabruby. 1 replies. Sort Posts: ...
User Profiles and Audience Targeting Overview You can find people by name or by the user's public profile properties. Office SharePoint Server 2007 search ... Using the User Profile Service Web Service ...
MSDN SharePoint - Development and Programming access custom ... access custom profile property. ... So I would need to make a call to the UserProfiles Web Service from the login.ascx.cs file? Any examples? ...
Personal Brokerage of Web Service Access As personal brokerage of Web service access becomes part of the Web ... allowing new Web services based on their inherent properties of tamper resistance, ...
Access profile properties. - Developer Discussion Boards Access profile properties. General Symbian C++. ... Nokia 6101 Locked 2 TMobile Midlet can't access internet... Jason Glass, Mobile Java Networking ...
Privacy Policy: Free Real Estate Investment Software, Real Estate ... We permit authorized personnel only to access personal information. Since we do not control transmissions over the Internet, via commercial Internet service ...
Sharing learner profile through an ontology and web services ... client applications to access and validate the Web Service. in a well defined way. ... characterizing the learner profile. The property st:has ...
SwissDisk™ - Privacy Policy SwissDisk is web based, and we require, at a minimum, the following .... This is to ensure that others cannot access your personal information or files if ...
Turn your Web Application into an OpenSocial container ... via Web UI and RESTful Web services. What is OpenSocial? ... With > 50 personal profile properties .... Gadgets cannot manipulate the Social Graph ...
AIPLA | Privacy Policy This is to help ensure that others cannot access Your personal information and ... at any time You may visit Your personal profile at . ...

Videos:
Looming City Bankruptcy?; Online Searching Risks; Public Square: Minimum Wage What is the prognosis for San Diego's troubled financial future? City officials and residents alike are looking for answers. Days after news that San...
Charlie Rose - Lance Armstrong / Kevin Spacey Segment 1: Lance Armstrong discusses his life after the Tour De France and his fight to cure cancer. Segment 2: Kevin Spacey discusses his latest ...




Search This Site:










using different profile providers

webpart run in form tag?

profiles and custom tables

asp.net 2.0 web part manager is undefined error

catalogue zone

web parts, ajax, asp.net 3.5 and drag and drop

web parts personalization conversion tool for nullable<t> beta 2 - to - rtm conversion issue

create a to do list user control to use in a web part

webpartdisplaymode mystery

add databound control to web part

ascx webpart - custom verbs

giving up on membership/roles/profiles

catalogzone and its footer drop down list...

profile collection

minimize/close button

werbparts and firebird database!

adding catalog parts to catalog zone programmatically

is there a built-in way to read/edit profile details?

need a tutorial for behavioreditorpart

webpart as web control

do the changes affect everyone or just the user?

web part for share point

how can i customize sharepoint form component "userlistform"?

web parts interaction at client side

webpart titleurl target="_blank"

can't create dynamic webparts

logon failure: unknown user name or bad password

webpartmanager.personalization.togglescope problem

custom dropdown properties from a dataset

could in some way user can change the layout of webpartzone

  Privacy | Contact Us
All Times Are GMT