posted on June 25, 2006 1:04 AM by Kurt
InfoPath Forms Services - Can't publish form
I'm currently working on a Federal Disaster Recovery Collaboration demo that heavily leverages InfoPath and Forms Services from Microsoft Office SharePoint Server 2007. If you're not familiar, MOSS 2007 and Forms Services allows for InfoPath forms to be displayed directly in the browser. Normally, Forms Services works out of the box, but the other day I ran into a bit of an odd situation.
Heres the error that I got:
This form template is browser-compatible, but it cannot be browser-enabled on the selecte site. This may be caused by one of the following reasons:
- The server is not running InfoPath Forms Services
- The necessary features are not available on the site collection
- The policy setting on the server does not allow users to browse enable templates.
The solution seemed pretty straight forward: enable Forms Services on the Site. Looking at the suggestion from InfoPath, perhaps I didn't have the SharePoint feature that allows Forms Services on my site. So, I went to the SharePoint Features page under Site Settings and activated the Office SharePoint Server Enterprise feature. Rerunning the publishing Wizard, I expected this to fix my problem ... but it didn't.
This turned out to be a bit of a noodle scratcher until I realized that although I enabled this feature on my subsite that I was going to publish to, I didn't enable it on my Site Collection. So, the solution is enable Forms Services on the Site Collection (Site Settings -> Site Collection Settings -> Features). Since I was trying to publish initially to the site collection, it rejects the form (even though the subsite could publish).
Now why did this work out of the box before on my previous installations? My previous installations used the Corporate Intranet Publishing Site as a template for the site collection; the broken one used the Internet Presence template. The difference here is the the Intranet Publishing Site activates these features by default - Internet Presence does not.
So the lesson here is: if you're going to use Forms Services on an Internet Presence site, activate the Office SharePoint Server Enterprise on the Site Collection first.