If you can provide a little more information on the error, does it give anything more as to why it can't complete the operation?
What do you mean by the On-Access control, do you mean viewing the avast providers (left clicking the avast icon) or right clicking the avast icon and select Start avast! Antivirus... ?
Try a repair of avast. Add Remove programs, select 'avast! Anti-Virus,' click the Change/Remove button and scroll down to Repair, click next and follow. You need to be on-line to do this.
If that doesn't work try, uninstall, reboot, install, reboot.