Name cannot begin with the '%' character


I am trying to create a Site Defintion using WSPBuilder. The solution compiles but it gives an error when I try to deploy.
Install and deploying DemoProject.wsp
Unable to deploy solution
Inner exception(1): Name cannot begin with the ‘%’ character, hexadecimal value 0×25. Line 1, position 2.
Did anybody face a similar issue? I have attached the demo project with this post.

file attachments


sebbas32 wrote Aug 22, 2011 at 3:09 PM

I know this could be very old, but i want to help, maybe someone could have this problem too.

I had the same and mine was in the Feature.xml, i was naming <ElementManifest> the ones that should be named <ElementFile>, like the schema.xml, AllItems.aspx, etc.

So the solution was to put in the correct that the files and the manifest, the result was something like this:
<ElementManifest Location="EventHandler\elements.xml"/>
<ElementManifest Location="CustomList\ListDefinition.xml"/>

<ElementFile Location="CustomList\schema.xml" />
<ElementFile Location="CustomList\AllItems.aspx" />
<ElementFile Location="CustomList\DispForm.aspx" />
<ElementFile Location="CustomList\EditForm.aspx" />
<ElementFile Location="CustomList\NewForm.aspx" />
I hope this helps.

wrote Feb 22, 2013 at 12:14 AM