I have made a report and a simple web program in C# that is calling for that report. When I run the program it works perfect with Firefox but not in IE 8.0. In IE it´s run forever until you got this error message:The underlying connection was closed: An unexpected error occurred on a receive. Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. An existing connection was forcibly closed by the remote host.
Anybody ever had this problem before and have a solution for this.
Thanks in advance for all who reply!
The code that generate the report: ReportViewer1.ProcessingMode = ProcessingMode.Remote;
ServerReport serverReport = ReportViewer1.ServerReport;
// Set the report server URL and report path
serverReport.ReportServerUrl =
new Uri("http://localhost/Reportserver");
serverReport.ReportPath =
"/WinLife.Accounting.Report/Report_Accountingvoucher";
// Create the sales order number report parameter
List<ReportParameter> paramList = new List<ReportParameter>();
paramList.Add(new ReportParameter("Workplace", Session["WorkPlace"].ToString()));
paramList.Add(new ReportParameter("BookkeepingYear", Session["BookkeepingYear"].ToString()));
paramList.Add(new ReportParameter("SerialNo", Session["SerialNo"].ToString()));
paramList.Add(new ReportParameter("DocumentType", Session["DocumentType"].ToString()));
paramList.Add(new ReportParameter("IndentDate", Session["IndentDate"].ToString()));
paramList.Add(new ReportParameter("AccountingVoucherCode", Session["AccountingVoucherCode"].ToString()));
paramList.Add(new ReportParameter("UserId", Session["UserId"].ToString()));
paramList.Add(new ReportParameter("Password", Session["Password"].ToString()));
ReportViewer1.ServerReport.SetParameters(paramList);
ReportViewer1.ServerReport.Refresh();
If I run the reportviewer in IE8 its looks OK. The reportserver, sql-server is installed on my machine. I run the program in Debug mode from VS2008 and I have Windows 7 installed. I tried to set the localhost in the trusted site but it didn´t change anything. It seems that it being stoped before it does anything in the SQL-Server. This works in Firefox.