Logo 
Search:

MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

MOSS UserProfile Update

  Asked By: Parvesh    Date: May 20    Category: MOSS    Views: 966

I developed a webpart to update the custom user profile property.

When I running the code, I am getting exception

Microsoft.SharePoint.SPException: Updates are currently disallowed on
GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates'
property on SPWeb

How to resolve the problem?

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Iris Ballard     Answered On: May 20

In the SPWeb object you need to set  the AllowUnsafeUpdates property
to true. For example:
web.AllowUnsafeUpdates = true;

Read the except below from the following Microsoft link for more
information.

 
Answer #2    Answered By: Jamila Guthrie     Answered On: May 20

Do I need to run the webpart  with elevated permissions when I am doing
profile update  using webpart. In one article I read that webpart should
run with elevated permissions.

 
Answer #3    Answered By: Kalpana Ghatge     Answered On: May 20

Furthermore on top of that though, aren't you opening a security door if
you're automatically processing without tokens for validation?

 
Didn't find what you were looking for? Find more on MOSS UserProfile Update Or get search suggestion and latest updates.




Tagged: