Problem when connecting SQL reprting services from c#.net Application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sbettadpur
    New Member
    • Aug 2007
    • 121

    #1

    Problem when connecting SQL reprting services from c#.net Application

    Hi All,

    I am getting the following Error while connecting to the SQL reports using report viewer .I have given the path like:




    The Error is:

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

    Could any one help me to get out of this problem.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Well have you looked to see what its responding with? The error makes it look like it's not sending back anything. And you expect a content type header with "text/xml".

    Comment

    • sbettadpur
      New Member
      • Aug 2007
      • 121

      #3
      Client found response content type of '', but expected 'text/xml'.

      Hi,

      Thank you for your reply.

      I am getting the following error while trying to access SQL reporting services from C#.NET application:

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


      Below is the code where I am getting the above error:

      ReportViewer1.V isible = true;
      ReportViewer1.P rocessingMode = ProcessingMode. Remote;
      ReportViewer1.S erverReport.Rep ortServerUrl = new Uri(strReportPa th);
      ReportViewer1.S erverReport.Rep ortPath = "MgrTeamAttenda nceReportAllFil ter";
      ReportParameter param1 = new ReportParameter ("EmpId", MGR.EmpId.ToStr ing());
      this.ReportView er1.ServerRepor t.SetParameters (new ReportParameter[] { param1 });

      I need your help for solving this issue.


      Thank you!






      Originally posted by Plater
      Well have you looked to see what its responding with? The error makes it look like it's not sending back anything. And you expect a content type header with "text/xml".

      Comment

      • sbettadpur
        New Member
        • Aug 2007
        • 121

        #4
        Client found response content type of '', but expected 'text/xml'.

        Hi,

        I am getting the following error while trying to access SQL reporting services from C#.NET application:

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

        Below is the code where I am getting the above error:
        Code:
         
        ReportViewer1.Visible = true;
        ReportViewer1.ProcessingMode = ProcessingMode.Remote;
        ReportViewer1.ServerReport.ReportServerUrl = new Uri(strReportPath);
        ReportViewer1.ServerReport.ReportPath = "MgrTeamAttendanceReportAllFilter";
        ReportParameter param1 = new ReportParameter("EmpId", MGR.EmpId.ToString());
        this.ReportViewer1.ServerReport.SetParameters(new ReportParameter[] { param1 });
        I need your help for solving this issue.


        Thank you!
        Last edited by DrBunchman; May 30 '08, 09:12 AM. Reason: Added code tags - note the # button

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          Merged threads. Please don't double post, it's against the posting guidelines.
          MODERATOR


          I guess I would suggest trying to packet watch (the program ethereal can do it) the traffic and see what it's really sending you back, there might be an error message inside the network stream?

          Comment

          Working...