Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Moving aspx page of site definition to a different feature leads to 404

$
0
0

I have created a custom SharePoint site definition. ASPX pages are added to modules as element files, which are in turn part of features. The features are included in the site template using a feature stapler. I use the template to create a site using the New-SPSite PS command.

I recently moved one of my pages into a new feature. However, when I try to access the page, I get a 404. I can see that the file was deployed and the path is accurate in elements.xml.

Looking at the ULS logs, I see that SharePoint still refers to the old hive path to get the file. Is this because the page was part of my site template? Do I need to create a new version of my site definition and create an upgrade path?

http://msdn.microsoft.com/en-us/library/ms369165%28v=office.14%29.aspx


Olorin


Viewing all articles
Browse latest Browse all 25064


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>