Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Failed to Instantiate file from Module

$
0
0

Am trying to provision a page through feature activation. Now I think i have most of what i need to get this done, however each time I try to deploy, i get the error...

  "Failed to instantiate file "MyPage.aspx" from Module"

This is what part of my Elements.xml looks like

<?xml version="1.0" encoding="utf-8"?><Elements xmlns="http://schemas.microsoft.com/sharepoint/"><Module Name="MyModule" Url="Pages" Path="Pages" RootWebOnly="False"><File Url="MyPage.aspx" Name="MyPage.aspx" Type="GhostableInLibrary" ><Property Name="Title" Value="MyPage" /><Property Name="ContentType" Value="My Page" /><Property Name="PublishingPageContent" Value="&lt;br&gt;This page will be used for bla bla bla." /><!-- 1st Web Part --><AllUsersWebPart WebPartZoneID="Header" WebPartOrder="1"><![CDATA[<webParts><webPart xmlns="http://schemas.microsoft.com/WebPart/v3"><metaData>

I have done some research and some suggested just removing the module and replacing it. Another suggestion was to change the "Type" from "GhostableInLibrary" to just "Ghostable"...none of the suggestions have worked.  I know it has something to do with the "Url" cause if I change the value to a different aspx page, that then becomes the page that cannot be instantiated. Does anyone know why this is occurring and how I can get it resolved? 

Thanks,


Viewing all articles
Browse latest Browse all 11508

Trending Articles



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