A
albupp
I'm creating a project using the PSI, and while waiting for the queue to
complete, I'm getting back an empty errinfo element:
<?xml version="1.0" encoding="utf-16"?>
<errinfo />
The status at the time is 3, "Queue job processing". The app thinks this is
an error because I borrowed code from the
ProjTool.WaitForQueueJobCompletion() which calls
checkStatusRowHasError(statusRow["ErrorInfo"].ToString()).
public static bool checkStatusRowHasError(string errorInfo)
{
XmlTextReader xReader = new XmlTextReader(new
System.IO.StringReader(errorInfo));
while (xReader.Read())
{
if (xReader.Name == "errinfo" && xReader.NodeType ==
System.Xml.XmlNodeType.Element)
{
xReader.Read();
if (xReader.Value == "")
return false;
else
return true;
}
}
return false;
}
This approach has worked fine in the past. Now it's giving me problems. I
restarted the Queue service on the server. But still no luck. Any ideas
anyone?
complete, I'm getting back an empty errinfo element:
<?xml version="1.0" encoding="utf-16"?>
<errinfo />
The status at the time is 3, "Queue job processing". The app thinks this is
an error because I borrowed code from the
ProjTool.WaitForQueueJobCompletion() which calls
checkStatusRowHasError(statusRow["ErrorInfo"].ToString()).
public static bool checkStatusRowHasError(string errorInfo)
{
XmlTextReader xReader = new XmlTextReader(new
System.IO.StringReader(errorInfo));
while (xReader.Read())
{
if (xReader.Name == "errinfo" && xReader.NodeType ==
System.Xml.XmlNodeType.Element)
{
xReader.Read();
if (xReader.Value == "")
return false;
else
return true;
}
}
return false;
}
This approach has worked fine in the past. Now it's giving me problems. I
restarted the Queue service on the server. But still no luck. Any ideas
anyone?