I have an infopath form I'm trying to publish and it causes the CPU usage to spike to 100% for over 10 minutes or until I kill the process.
The form isn't overly complicated as it just has 3 cascading drop down lists that pull data from 3 lists that have less than 10 items in each list.
Removing one of the drop downs (doesn't matter which one) allows me to publish without any problems.
I checked fiddler and its seems to be hanging on a call to FormsService.asmx method: BrowserEnableUserForm
Using proccess monitor i took a dump of the w3wp that was spiking and this seems to confirm it:
Microsoft.Office.InfoPath.Server.Util.StackEx1[[System.__Canon,mscorlib]]..ctor(Microsoft.Office.InfoPath.Server.Util.StackEx1) Microsoft.Office.InfoPath.Server.Util.SchemaNavigator+Ancestors..ctor(Ancestors) Microsoft.Office.InfoPath.Server.Util.SchemaNavigator.MoveTo(Microsoft.Office.InfoPath.Server.Util.SchemaNavigator) Microsoft.Office.InfoPath.Server.Util.SchemaNavigator.Clone() System.Xml.XPath.XPathNodeIterator+Enumerator.get_Current() Microsoft.Office.InfoPath.Server.XPath.ExpressionGenerationVisitor.IsInnerNode(Microsoft.Office.InfoPath.Server.Util.ViewPath, System.Collections.Generic.Dictionary`2>) Microsoft.Office.InfoPath.Server.XPath.ExpressionGenerationVisitor.GetViewPathsForAstNode(Microsoft.Office.InfoPath.Server.XPath.AstNode) Microsoft.Office.InfoPath.Server.XPath.ExpressionGenerationVisitor.OutputSelect(Microsoft.Office.InfoPath.Server.XPath.AstNode) Microsoft.Office.InfoPath.Server.XPath.ExpressionGenerationVisitor.VisitAxis(Microsoft.Office.InfoPath.Server.XPath.Axis, Microsoft.Office.InfoPath.Server.XPath.AstNode) Microsoft.Office.InfoPath.Server.XPath.ExpressionGenerationVisitor.VisitAstNode(Microsoft.Office.InfoPath.Server.XPath.AstNode)
The ULS log contained no errors but the last line the Form Services writes to the log is: InfoPath Forms Services Conversion and Deployment 93xm Verbose Recursion: Leaving annotating schemas.
How can I solve this?