I needed to activate Publishing feature in a sub site which I got newly created but it occurred an error as below which I was not able to go ahead.
“Error ( file not found) when trying to activate office SharePoint server publishing feature”.
checked the Alternate Access mappings (AAM) as I was accessing this site externally. I have been forgot to include the URL Entry in External Zone. tried again to activate the feature after adding URL and the error disappeared.
Make sure you have configured AAM for your Site collections once you created them.
Hi I encountered the same issue, just activate both ‘SharePoint Server Publishing’ in ‘Site Features’ and manage features also active the same feature.
Stop & restart IIS on the site and try again ,its should works
Thanks Salim for Sharing your Inputs !