473,473 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

121 New Member
Hi All,

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

http://localhost/mytestreportserver/.../LMSProduction


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.
May 29 '08 #1
4 3362
Plater
7,872 Recognized Expert Expert
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".
May 29 '08 #2
sbettadpur
121 New Member
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.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!






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".
May 30 '08 #3
sbettadpur
121 New Member
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:
Expand|Select|Wrap|Line Numbers
  1.  
  2. ReportViewer1.Visible = true;
  3. ReportViewer1.ProcessingMode = ProcessingMode.Remote;
  4. ReportViewer1.ServerReport.ReportServerUrl = new Uri(strReportPath);
  5. ReportViewer1.ServerReport.ReportPath = "MgrTeamAttendanceReportAllFilter";
  6. ReportParameter param1 = new ReportParameter("EmpId", MGR.EmpId.ToString());
  7. this.ReportViewer1.ServerReport.SetParameters(new ReportParameter[] { param1 });
  8.  
I need your help for solving this issue.


Thank you!
May 30 '08 #4
Plater
7,872 Recognized Expert Expert
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?
May 30 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: W Akthar | last post by:
Hi I am trying to create a windows service which queries SQL Server on timed intervals and depending on the results send appointments to Outlook. The problem lies when I try to create an...
3
by: Jay | last post by:
Hello, I have Windows Forms application which uses MS Access Database and a Pocket PC application which uses Datasets, Iam trying to pass Datasets between these applications using WebServices. ...
1
by: Chris Love | last post by:
I have already asked this, but no one seems to know the answer. Here is the timeline. I wanted to use the membership/roles functionality in a site. I got all sorts of errors trying to get this...
0
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
5
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
2
by: shapper | last post by:
Hello, I added some profile properties to my web.config file. Then I started to use my profile properties in a page class and I get an error: An error has occurred while establishing a...
2
by: Patrick F | last post by:
Hi, i have SQL Server 2005 and a database set that is called, myCompany the problem is that i cant connect from my page to it, here is from the web.config: ( i have got this connectionstring from...
2
by: itfetish | last post by:
I've just upgraded our WIndows 2003 (with SBS server) web server to .Net framework 2.0 (it had 1.1 before) As I have been working on a web parts page on my laptop, hosting it there, working...
0
by: sangkatte | last post by:
While running asp website designed with webparts, I got the following error. Please tell me how to solve this problem. An error has occurred while establishing a connection to the server. When...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.