Hi Daniel,
I have seen this error mostly when service becomes unavailable. Reasons could be:
1. Cross domain file does not exist in the root of ArcGIS Server making service inaccessible.
2. Network issue ex: ArcGIS Server is not accessible.
etc.
Next time you get this error message please try to analyze the request and response using the Fiddler (http://www.fiddler2.com/fiddler2/) This will help to narrow down the issue.
I hope this helps.