I need to approve and reject a task using button in Visual Webpart. I have done a POC using C# Console Application and web service. N I was successfully able to Approve and Reject the tasks. When I take this to Visual Webpart I am getting 401 Http unauthorized error.
Please help me.