How To Fix The NativeStack Error In SharePoint 2010 When Deploying An Event Receiver


Have you ever had the dreaded "Error occurred in deployment step 'Activate Features': <nativehr>0x80070002</nativehr><nativestack></nativestack>" error when deploying an Event Receiver that targets a specific list?



In my case, this was caused by an invalid 'ListURL' setting in my elements.xml file.  Be sure the 'Site URL' property of your project points to the site that the List resides.  If this is pointed to the level above, the list will not be found, and you will get the error above.  ListURL needs to be 'Lists/'{your list name}  ex. List/Customers, thus you see why it is important for the Site URL to be set properly.



There are no notes on this topic.

Add comment

  Country flag

  • Comment
  • Preview