Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I created a visualwebpart for list Employee details. Created a web part page template with the following steps:

  1. Created a module named WebPartPageTemplate
  2. Renamed Sample.txt to WebPartPageTemplate.aspx
  3. Cleaned all the text from WebPartPageTemplate.aspx
  4. Copied the markup of Application page from another Visual Studio instance to WebPartPageTemplate.aspx.
  5. Modified the page directive, and added extra register for WebPartPages.
  6. Added markup for WebPartZone in the main content.

  7. Modified the module's Element.xml to add instance of this template.

When I build and deploy this application I get a deployment error:

Error 1 Error occurred in deployment step 'Activate Features': Failed to instantiate file "WebPartPageTemplate.aspx" from module "WebPartPageTemplate": The specified list does not exist.

What could be this error all about? Any help on this is highly appreciated.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.