Friday, July 24, 2009

Invalid token 'Text' at root level of document.

ERROR: You may come across the below error while trying to run the makecab.exe command to generate a .WSP solution package for sharepoint webparts(or any other solution)
Invalid token 'Text' at root level of document.
XML document must contain a root level element.Data at the root level is invalid. Line 1, position 1. In DDF files


SOLUTION: Delete the frontpage server extension pages in your project. As for example my webpart project contained the .aspx pages. So once I deleted the .aspx pages , this error went off.

No comments:

Post a Comment