When using Visual Studio to package and deploy an event receiver to be associated with SharePoint list, you may come across this error:
Error occurred in deployment step ‘Activate Features’: <nativehr>0x80070002</nativehr>
This probably means that your List URL is incorrect in the receiver elements file. The format needs to be :
You may also see a Invalid Function error when you try to activate the feature manually in your site. Double check the URL of your list and ensure the list either exists or is being created at this URL prior to the receiver activation.