MOSS Forum

 
Home » Forum » MOSS       Ask a questionRSS Feeds

MOSS UserProfile Update

  Asked By: Parvesh Sukhtankar         Date: May 20, 2007      Category: MOSS      Views: 270
 

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?

Tagged:      

 

3 Answers Found

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

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, 2007       

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, 2007       

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].