“Cannot find or parse web template file” errors using stsadm.exe

I was trying to install the Job Requisition template into SharePoint, but kept getting an error message everytime I tried:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>STSADM.EXE -o addtemplate -filename c:\Templates\JobRequisition.wsp -title JobRequisition -description JobRequisition

Cannot find or parse web template file c:\Templates\JobRequisition.wsp.

I downloaded different copies of the template from all over the web, but I kept getting the same message:

After a couple of days of searching Google, I finally found the answer:

wsp file extensions take addsolution, not addtemplate

And after changing the command just a tiny bit – I finally had sucess:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>STSA
DM.EXE -o addsolution -filename “c:\Templates\jobs\JobRequisition.wsp”

Operation completed successfully.

If I had read the “readme.txt” file that came with every copy of the file I downloaded, I would have figured this out about a day quicker…..

Finally, don’t forget to deploy the solution before trying to make a site with it.  Full instructions can be found on the TechNet site at: http://technet.microsoft.com/en-us/library/cc288412%28office.12%29.aspx

One Comment

  1. Mitali
    Posted October 30, 2012 at 5:49 am | Permalink

    Great help!!

Post a Comment

Your email is never shared. Required fields are marked *

*
*