Wednesday, December 7, 2011

SPWorkflowTask.AlterTask throws “Specified method is not supported”

This error occurred to me when i was trying to programmatically approve a task in the SharePoint 2010.  

Later on I found that the problem is the Task List do not have the content Type WorkFlow Task inherited. After i add that content type it worked for me.

2 comments:

Anonymous said...

hi this goutam im new to sharepoint im facing the same problem can you explain me how to check inheritance, and set to workflow task.

melick baranasooriya said...

Hi Anonymous,

Go to list settings and go advance setting and make Allow COntent Type changes to yes;

Then you can see available content types related to that list