Using the SharePoint Solution Generator tool to create new list feature definitions - Derek Adkins

Using the SharePoint Solution Generator tool to create new list feature definitions

I discovered that the SharePoint Solution Generator adds a comment at the top of the generated aspx and schema.xml files for a list:

<!--  _filecategory="ListDefinition"  _filetype="File"  _filename="DispForm.aspx"  _uniqueid="f3b8b185-2b24-4180-9854-e74d8d12ec75"  -->

If this comment is left in the files when they are deployed, you will get an error when trying to view those pages:

 

"Only content controls are allowed directly in a content page that contains content controls"

To correct the problem, just delete that comment line, rebuild the WSP file and redeploy.

Weird. 

 


 

Published 31 January 2008 09:46 AM by derek

Comments

# sandeep said on 17 August, 2008 11:48 PM

i never got that error ? all of my features still have the comments.. it might be something else in ur case ...

# Roman said on 03 September, 2008 08:11 AM

I solve problem when delete this comments. But I have a question, what porpose of this comments? Have you any ideas?

if it possible, mail me your ideas Roman_Stapunov@epam.com

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above: