I have a wsp which I use to create a site collection (SiteCollectionRoot) into which I deploy a content type MyContentType. I then create a sub-site MySubSite and a document library named MyDocLibrary. Via code I set up a Document Information Panel (DIP) on MyContentType (resulting mark up from SharePoint Manager show below).
I have used InfoPath 2010 to create my custom DIP (named Form1.xsn). I created the xsn by choosing the DIP option in InfoPath and attaching to a test document library I created manually which has my MyContentType present. I then made my changes to the form (removed one field from the visual interface) and saved the form. I then extracted all items from the xsn file, edited the manifest to remove the PublishUrl entry and also edited the template. and used MakeCab to put the xsn back together).
Whenever I then try to add a new document into MyDocLibrary Word opens with the following message.
Document Information Panel cannot open a new form.The form cannot be opened. To fix this problem, contact the form designer.
Form template: "http://myserver.devdomain.com/sites/SiteCollectionRoot/_cts/MyContentType/Form1.xsn
The address is not valid. Enter an address that begins with http://, https://, or another valid protocol.
<XmlDocument NamespaceURI="http://schemas.microsoft.com/office/2006/metadata/customXsn"><customXsn xmlns="http://schemas.microsoft.com/office/2006/metadata/customXsn"><xsnLocation>http://myserver.devdomain.com/sites/SiteCollectionRoot/_cts/MyContentType/Form1.xsn</xsnLocation><cached>False</cached><openByDefault>True</openByDefault><xsnScope>http://myserver.devdomain.com/sites/SiteCollectionRoot/MySubSite/MyDocLibrary</xsnScope></customXsn></XmlDocument>
The address IS valid as I can browse to the url in IE whereupon I am prompted to save the form.
At both the MySiteCollection and MySubSite level I have activated SharePoint Server Enterprise Site (Collection) Features.
Any ideas please?
P.S. MyContentType contains Managed Metadata (Taxonomy) fields.