473,545 Members | 2,291 Online
Bytes | Software Development & Data Engineering Community
+ 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 3376
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.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!






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
2339
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 outlook application object.
3
1490
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. Both these applications are shrink wrapped so they need to perform with little user configuration WebService/IIS is running on the computer...
1
1886
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 setup on the site through the admin interface. So I yanked it out of the application since it did not work. Now everytime I load the site after...
0
3906
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 development client. Bur Its gives me following error message. I searched lots of things on net and tried on remote server but i didnt got suceess. Can any...
5
23986
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 development client. Bur Its gives me following error message. I searched lots of things on net and tried on remote server but i didnt got suceess. Can any...
2
1736
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 connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not...
2
4109
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 my sqldataobject on my page) <add name="ConStr" connectionString="Data Source=localhost;Initial Catalog=myCompany;Integrated Security=True"...
2
1881
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 perfectly. I want to transfer it now, so I upgraded it. Created a new application pool for .net2.0 stuff, then used Visual Studio 2005 from my laptop...
0
1093
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 connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections....
0
7398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7805
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7752
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5969
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4944
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1878
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
701
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.