We are updating component field while publishing the component, eg. When the component is getting published we want to update current date time to PublishDate field of the component. We have written this code in .net assembly(c#). While publishing component is getting failed with an error "You do not have permission to perform this action"
We used to do this in vbscript templates but we are migrating to compound template there we are facing this issue.