Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I had designed report using reportviewer. When I am running it on local machine its working fine but after uploading website its not working

so please guide me how to upload report on server.

my reportveiwer design is 


XML
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="800px"
        Font-Names="Verdana" Font-Size="8pt" InteractiveDeviceInfos="(Collection)"
        WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" ShowPrintButton="true" ShowExportControls="true" ShowBackButton="false">
    <LocalReport ReportPath="Report1.rdlc">
        <DataSources>
            <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="DataSet1" />
        </DataSources>

    </LocalReport>

</rsweb:ReportViewer>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
        SelectMethod="GetData" TypeName="doctorTableAdapters.regdoctorTableAdapter">
    </asp:ObjectDataSource>
Posted
Updated 24-Sep-13 22:29pm
v2
Comments
Ravi_kant 25-Sep-13 23:49pm    
I am getting error like



An error occurred during local report processing.
The definition of the report 'Report1.rdlc' is invalid.
An unexpected error occurred in Report Processing.
Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

1 solution

Hi Ravi_Kant,
By looking your error , I guess that there might be version conflict between crystal report version that you are using on your local machine and server .
Check crystal report is present there on server or not and also check crystal report's version on your local machine and your server whether they are same.

--
Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900