Report Viewer 2005 Error !! Client found response content type of '', but expected 'text/xml'. The request failed with an empty response. RRS feed

  • Question

  •  I have reports deployed on SQL Reporting server 2005. My .Net web application render the reports using the ASP.Net 2.0  report viewer control. It works perfectly when i render the report deployed on development report server. But when i try to render the reports deployed on my test server the report viewer displays an error message.

    Client found response content type of '', but expected 'text/xml'. The request failed with an empty response.

    I could not find the reason, is it some thing to do with the report server setting or Service packs. Please help.
    Friday, December 12, 2008 9:05 PM


All replies

  • I have seen this error when the URL to the report server is not specified correctly.  Make sure that the URL that you specify to ReportViewer.ServerReport.ReportServerUrl does not reference the SOAP endpoint.  That is, it should be of the form http://machinename/reportserver.  You should be able to copy-paste the URL into a browser and see the contents of the report server root folder.
    Sunday, December 14, 2008 8:43 PM
  • Brian, thank you very much for your reply.

    This is the URL I'm using http://uslibsqr304/reportserver? for ReportViewer.ServerReport.ReportServerUrl.  I'm able to browse from the IE and i do see the root folder.

    This is the URL of my development report server which works fine.

    Is it some thing to do with the reportserver configuration? Please advice.
    Tuesday, December 16, 2008 2:29 PM
  • I'm not sure if this is a typo in your post or not, but do you have a question mark at the end of the url you are supplying to the report viewer?  Does it work if you remove it?
    Tuesday, December 16, 2008 5:00 PM
  • Brian, its not typo error, that is the report server URL given by my report server team. 
    Yes it works when i remove it, Im able to see the root folder. My application also works fine now!!
    This is how my code look like now.

    ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://uslibsqr304/reportserver");
    ReportViewer1.ServerReport.ReportPath =

    Thank you very much for helping me on this issue.
    But i dont understand why they use a ? in the url. If i remove the ? in the URL below and browse from IE, im not able to see the reports under my folder MNLR, it is still displaying the root folder.


    Tuesday, December 16, 2008 7:34 PM
  • When accessing the report server directly, the report path is specified as part of the URL query and therefore needs the question mark.  But the report viewer takes only the location of the report server.  It uses that URL to make URL access calls as well as SOAP calls, so it will append a variety of different values for the various URL access and SOAP calls it makes.

    Tuesday, December 16, 2008 11:29 PM
  • Thanks for your Information!
    Friday, December 19, 2008 11:02 PM