1

我是信息路径,但间歇性崩溃给我错误 304 未知资源。

错误发生在:

 XPathNavigator domNav = ds.CreateNavigator(); XPathNodeIterator rows = domNav.Select("/dfs:myFields/dfs:dataFields/tns:GetDataResponse/tns:GetData/NewDataSet/DynamicData", NamespaceManager); 

这是我的代码:

 string myNamespace = NamespaceManager.LookupNamespace("my");
//Clear any previous entries 
XPathNavigator rTable = MainDataSource.CreateNavigator(); XPathNodeIterator tableRows = rTable.Select("/my:MainDataSource/my:group1/my:group2", NamespaceManager); 

if (tableRows.Count > 0) 
 {for (int i = tableRows.Count;i > 0; i--) 
{
XPathNavigator reTable =
 MainDataSource.CreateNavigator();
 XPathNavigator reTableRows =
 reTable.SelectSingleNode("/my:MainDataSource/my:group1/my:group2[" + i + "]",
 NamespaceManager);
reTableRows.DeleteSelf(); 
}
 }
//Connect to secondary data source 
DataSource ds = DataSources["GetData"]; 
XPathNavigator domNav = ds.CreateNavigator(); XPathNodeIterator rows = domNav.Select("/dfs:myFields/dfs:dataFields/tns:GetDataResponse/tns:GetData/NewDataSet/DynamicData", NamespaceManager); 

//Loop through secondary data source and populate the repeating table 

while (rows.MoveNext()) 
{ 

我到处重新搜索。问题可能出在哪里?

4

1 回答 1

0

我对 Info-path 2007 有同样的问题。完全相同的代码因上述错误和错误 5566 而崩溃。经过大量调查,结果发现信息路径 2007 存在问题。

我建议升级到 info path 2010。就我而言,稳定性问题已解决 99%。我仍然会崩溃,但比以前少得多。

于 2013-07-06T20:49:31.050 回答