在报表中调用Render方法时出错 [英] Error in calling Render method in Reporting

查看:98
本文介绍了在报表中调用Render方法时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上一个线程: http ://www.codeproject.com/Questions/113444/Error-in-calling-Render-method-in-Reporting.aspx [
第二个

无法自动进入服务器.无法调试远程过程.这通常表明服务器中尚未启用调试.有关更多信息,请参阅帮助.那我该怎么办?在此先感谢.


我该怎么办?

deepak thomas写道:

System.Web. Services.Protocols.SoapException:服务器无法识别HTTP标头SOAPAction的值:http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices/Render.在System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()在System.Web.Services.Protocols.SoapServerProtocol.Initialize()在System.Web.Services.Protocols.ServerProtocol.SetContext(类型类型,HttpContext上下文,HttpRequest请求, System.Web.Services.Protocols.ServerProtocolFactory.Create上的HttpResponse响应)(类型类型,HttpContext上下文,HttpRequest请求,HttpResponse响应,Boolean& 服务器无法识别HTTP标头SOAPAction的值 [ ^ ]


asp.net页面

 <   rsweb:ReportViewer     ID   ="   ="span>    runat   =" 服务器" 字体名称   Verdana" 
                     span>          = "    高度  ="    宽度  ="   ShowBackButton    True" <   LocalReport     ="   Reports \ RecieptVoucherForStudent.rdlc" > 
                <  数据源 > 
                    <   rsweb:ReportDataSource     DataSourceId   ="  名称   StudentDetails_spGEMS_Reports_GetStudentVoucherEntryDetailsByVoucherID " / <  /DataSources  > 
            <  /LocalReport  > 
        <  /rsweb:ReportViewer  >  



c清晰页面
castWiseReportViewer.LocalReport.EnableExternalImages = true;
DataTable dtHeader = new DataTable();
GEMSUser objLogin =(GEMSUser)Session ["GEMSLoggedInUSer"];
dtHeader = Common.CatchReportHeader(objLogin.SchoolCode);
Microsoft.Reporting.WebForms.ReportParameter []参数=新的ReportParameter [6];

Params [0] = new ReportParameter("Header1",System.Configuration.ConfigurationManager.AppSettings ["SchoolName"].ToString());
Params [1] = new ReportParameter("Header2",Convert.ToString(dt.Rows [0] ["ReceiptType"])));

Params [2] = new ReportParameter("Header3",dtHeader.Rows [1] ["Header"].ToString());
Params [3] = new ReportParameter("Header4",dtHeader.Rows [2] ["Header"].ToString());
Params [4] = new ReportParameter("Header5",dtHeader.Rows [3] ["Header"].ToString());
Params [5] = new ReportParameter("Path",Request.Url.AbsoluteUri.Replace(Request.Url.AbsolutePath,")+ Request.ApplicationPath + @"/Images/School logo.gif");
this.castWiseReportViewer.LocalReport.SetParameters(Params);
this.castWiseReportViewer.LocalReport.ReportPath =";
this.castWiseReportViewer.LocalReport.DataSources.Clear();
this.castWiseReportViewer.LocalReport.Refresh();
this.castWiseReportViewer.LocalReport.ReportPath = Server.MapPath(〜/Reports/RecieptVoucherForStudent.rdlc");
ReportDataSource rptUserHeader =新的Microsoft.Reporting.WebForms.ReportDataSource("StudentDetails_spGEMS_Reports_GetStudentVoucherEntryDetailsByVoucherID",dt);
this.castWiseReportViewer.LocalReport.DataSources.Add(rptUserHeader);
this.castWiseReportViewer.LocalReport.Refresh();
this.castWiseReportViewer.Visible = true;


StudentDetails_spGEMS_Reports_GetStudentVoucherEntryDetailsByVoucherID-这是数据集名称


Previous Thread : http://www.codeproject.com/Questions/113444/Error-in-calling-Render-method-in-Reporting.aspx[^]

Continue..

i am getting the following error message boxes when calling render method

first one

Your step into request resulted in an automatic step-overof a property or operator. This behaviour can be overriddenin the context menufor the line being executedby choosing ''Step into Specific''or by unchecking the option ''Step over properties and the operators''. u want to continue being notified?

second one

Unable to automatically step into server.The remote procedure could not be debugged.This usually indicates that debugging has not been enabled in the server.See help for more information So what should i do? thanks in advance.


What should i do?

解决方案

deepak thomas wrote:

System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices/Render. at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response) at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

Fix link
Server did not recognize the value of HTTP Header SOAPAction[^]


asp.net page

<rsweb:ReportViewer ID="castWiseReportViewer" runat="server" Font-Names="Verdana"

            Font-Size="8pt" Height="600px" Width="1024px" ShowBackButton="True">
            <LocalReport ReportPath="Reports\RecieptVoucherForStudent.rdlc">
                <DataSources>
                    <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="StudentDetails_spGEMS_Reports_GetStudentVoucherEntryDetailsByVoucherID" />
                </DataSources>
            </LocalReport>
        </rsweb:ReportViewer>



c Sharp page
castWiseReportViewer.LocalReport.EnableExternalImages = true;
DataTable dtHeader = new DataTable();
GEMSUser objLogin = (GEMSUser)Session["GEMSLoggedInUSer"];
dtHeader = Common.CatchReportHeader(objLogin.SchoolCode);
Microsoft.Reporting.WebForms.ReportParameter[] Params = new ReportParameter[6];

Params[0] = new ReportParameter("Header1", System.Configuration.ConfigurationManager.AppSettings["SchoolName"].ToString());
Params[1] = new ReportParameter("Header2", Convert.ToString(dt.Rows[0]["ReceiptType"]));

Params[2] = new ReportParameter("Header3", dtHeader.Rows[1]["Header"].ToString());
Params[3] = new ReportParameter("Header4", dtHeader.Rows[2]["Header"].ToString());
Params[4] = new ReportParameter("Header5", dtHeader.Rows[3]["Header"].ToString());
Params[5] = new ReportParameter("Path", Request.Url.AbsoluteUri.Replace(Request.Url.AbsolutePath, "") + Request.ApplicationPath + @"/Images/School logo.gif");
this.castWiseReportViewer.LocalReport.SetParameters(Params);
this.castWiseReportViewer.LocalReport.ReportPath = "";
this.castWiseReportViewer.LocalReport.DataSources.Clear();
this.castWiseReportViewer.LocalReport.Refresh();
this.castWiseReportViewer.LocalReport.ReportPath = Server.MapPath("~/Reports/RecieptVoucherForStudent.rdlc");
ReportDataSource rptUserHeader = new Microsoft.Reporting.WebForms.ReportDataSource("StudentDetails_spGEMS_Reports_GetStudentVoucherEntryDetailsByVoucherID", dt);
this.castWiseReportViewer.LocalReport.DataSources.Add(rptUserHeader);
this.castWiseReportViewer.LocalReport.Refresh();
this.castWiseReportViewer.Visible = true;


StudentDetails_spGEMS_Reports_GetStudentVoucherEntryDetailsByVoucherID- This is Dataset Name


这篇关于在报表中调用Render方法时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆