I’ve been working on a project that deploys a SharePoint “Content Type” – and an associated Document Template – which works nicely…!
I’d changed the template file – and updated within Visual Studio – and then it wasn’t working anymore – what the ??
Failed to instantiate file "_cts/Outgoing Letter/OutgoingDocumentTemplate.docx" from module "Template Outgoing Letter": Source path "Featuresxxxxx.Intranet.Correspondence_Content TypesOutgoing LetterOutgoingDocumentTemplate.docx" not found.
It all looks OK in Visual Studio…>
And – the manifest file is referencing the file…>
The next step was to check the actual WSP…>
- Open Windows Explorer
- Navigate to the BIN folder – and find the WSP that Visual Studio created
- Change the name to CAB – and have a look inside
THAT’S when I noticed the file wasn’t included in the CAB file – and thus not in the WSP !
Aaaah – I know now…>
- Need to ensure that the actual file (DOCX) is included as an “ElementFile”
The default is “NoDeployment” – especially for a DOCX – not normally needed as part of the deployment.
Problem solved – phew !
Great write-up, I will be normal visitor of one’s site, maintain from the nice operate, and
It can be likely to be a frequent visitor
to acquire a lengthy time.
LikeLike