I am trying to deploy an Administrator Approved InfoPath form template to SharePoint 2010 as a feature. I've done this lots of times in 2007 and never had an issue - but this will not play ball.
I created a new feature SPI in VS2010 and manually edited the xml to the following:
<Feature xmlns="http://schemas.microsoft.com/sharepoint/" Title="My Feature" Id="0e716460-b201-4188-ab31-f78035bd7922" ReceiverAssembly="Microsoft.Office.InfoPath.Server, Version=18.104.22.168, Culture=neutral, PublicKeyToken=71e9bce111e9429c" ReceiverClass="Microsoft.Office.InfoPath.Server.Administration.XsnFeatureReceiver" Scope="Site"> <ElementManifests> <ElementManifest Location="UserRequestForm\Elements.xml" /> <ElementFile Location="UserRequestForm\UserRequest.xsn" /> </ElementManifests> </Feature>
The elements xml is as follows:
<?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Module Name="XSN" Url="FormServerTemplates" RootWebOnly="TRUE"> <File Path="UserRequestForm\UserRequest.xsn" Name="UserRequest.xsn" Url="UserRequest.xsn" Type="GhostableInLibrary" /> </Module> </Elements>
The solution deploys successfully and the feature gets activated however the form template is not visible in the 'Manage Form Templates' area of central admin. I can't find any errors in the ULS logs or event logs - it seems to show that the XSNFeatureReceiver has been run with no problems.
The form does appear in the FormServerTemplates library correctly.
Things I have tried to so far:
-Running design checker in InfoPath and verifying that there are no errors or warnings
-Creating a new feature and verifying all feature XML is correct
-Creating my own FeatureReceiver class that inherits from XSNFeatureReceiver to try and debug (I am not able to step in to the XSNFeatureReceiver code)
For your information the form in question is extremely simply - it has a connection to a SQL database using SQL auth and a submit connection - it has no controls on the form. I have given the form Full Trust.
Hope someone can help with the issue as its been driving me crazy for ages!