I am using reportviewer control to show some data on an asp.net page. It is working fine in the devolpment?Machine, but when I move the code over to our Production server I get a runtime error, the runtime error shows up on the webpage and simply says:
An error has occurred during report processing.
Exception has been thrown by the target of an invocation.
Object reference not set to an instance of an object.
That didn't help at all.
Any ideas?
Thanks a lot you guys have been very helpful.
SajjadNo reply yet :(|||
Hi,
Can you add a label to display the exception in detail. At lease you can get the code line where you get the error.
Perhaps the dev and the production reports may differ in parameters, etc.
Do you set the processing mode to remote?
|||Thanx for reply,
I used this code in Report web page...(no code in code behind file)
<%@. Page Language="VB" AutoEventWireup="false" CodeFile="Report_ArabicInvoice.aspx.vb" Inherits="Web_Pages_Reports_Report_ArabicInvoice" %
<%@. Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>?รบ??EXFP - Arabic Invoice</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td style="width: 100px">
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
Height="800px" Width="800px" ShowDocumentMapButton="False" ShowFindControls="False" ShowPromptAreaButton="False" ShowRefreshButton="False">
<LocalReport ReportPath="~\..\Web_Pages\Reports\Report_ArabicInvoice.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="ReportDataSet_Report_DT_ArabicInvoice" />
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetData"
TypeName="ReportDataSetTableAdapters.Report_DT_ArabicInvoiceTableAdapter" OldValuesParameterFormatString="original_{0}">
<SelectParameters>
<asp:SessionParameter Name="ord_ID" SessionField="Report_AI_OrdID" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
</td>
</tr>
</table>
</div>
</form>
</body>
</html|||note : ?Process mode is set to be "LOCAL"|||no reply yet ?:(
No comments:
Post a Comment