I have created simple sequential workflow in visual studio with one application page(which has 3 buttons like Approve,Reject & Close buttons) for editing the task. i deployed it to site collection on (http://8888).it works as i want.
but when i deployed it to other site collection eg (http://8888/sites/mysite) then the Taskitem.Update() line throw an error,
I have also created two same lists (Request List and Task List with same name and fields) on : //8888/sites/mysite
Remember above code works fine on my first site collection but not on other as described above.
can anyone know why this happens?