Archive for April 11, 2011

Form template failed to load

If you’re working with an InfoPath form and are trying to display it as a web enabled form but are getting errors saying the form template failed to load, it may just be due to the manifest for the XSN not containing the relative URL base.

For the following ULS errors:

The form template failed to load. (User: …., Type: NullReferenceException, Exception Message: Object reference not set to an instance of an object.)
Unhandled exception when rendering form System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Office.InfoPath.Server.SolutionLifetime.DataAdapterListDataProvider.
UrlIsSameFileOrSamePath(String absoluteFileUrl, String baseFileOrFolderUrl)….

These are due to the XSN not having the base URL defined, which can be resolved by updating the manifest.xml with the following element:
Read more

Error Saving Site as Template

The reason for this post is to hopefully help other users who may have come across the error generating solution files in temporary directory error when attempting to save a site as a template.

Error generating solution files in temporary directory

Error generating solution files in temporary directory

I came across the above error when enabling auditing against a custom content type and subsequently tried to save the site as a template. Looking through the entries in the ULS (unified logging service) log I found the following couple of errors:
Read more

Custom Field with ECB

This post describes how you would go about creating a new SharePoint field and control the URL it maps to and have it display the ECB (Edit Control Block) menu for the selected item.

Edit Control Block

It may look like an ordinary field with an ECB but using a custom field we can control where clicking the URL takes the user.
Read more


Get every new post delivered to your Inbox

Join other followers: