In Jmeter when I do a load test I download a document in the application but the result is viewed as "You cannot open this document because no login server has been detected". However I'm able to download the file.
Add View Results Tree listener to your test plan and carefully expect all preceding responses, most likely you have to authenticate prior to downloading
Try adding HTTP Cookie Manager to your Test Plan and re-run the test. If it doesn't resolve your issue you might have to perform some correlation to handle mandatory dynamic parameters or bypass CSRF protection or whatever.