Queue Error w/ Empty errinfo

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top