Issue: When I am publishing the form to server it is giving me "The form template has been published to the server but it can only be opened in the InfoPath filler" error.
Background: I have created a form which has data connections, some of which fetches information on form load, some based on event. Also, have the code behind for button_click event and field_changed event. I have published this form with "Domain" security directly to server. Just a day before it was working fine..... after making some text changes I published it again and it displayed that error.
I searched for the complete error in logs and found:
Stack Trace:
Activate NonAdminSolution failed with unhandled exception System.ArgumentNullException: Value cannot be null.
Parameter name: g
at System.Guid..ctor(String g)
at Microsoft.SharePoint.SPUserSolutionCollection.Add(Int32 solutionGalleryItemId)
at Microsoft.Office.InfoPath.Server.Administration.NonAdminSolution.CreateAndActivateWspSolution(SPSite site, SPFile originalFile, SolutionInformation information, String& wspSolutionName, String& wspSolutionHash)
at Microsoft.Office.InfoPath.Server.Administration.NonAdminSolution.<>c__DisplayClass3.<Activate>b__0()
at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock)
Any help here?