locked
crystal report RRS feed

  • Question

  • hello

    I have done a project on crystal report it is working fine in visual studio 2008 .net frame work 3.5(my local machine) but after uoploaded in server which is visual studio 2005 .net frame work 2.0

    its give error

    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

    Source Error:

    Line 1:  <%@ Page Title="" Language="C#" MasterPageFile="~/adminzone/MasterAdmin.master" AutoEventWireup="true" CodeFile="reports_details.aspx.cs" Inherits="adminzone_reports_details" %>
    Line 2:  <%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Line 3:      Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    Line 4:  <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


    Source File: /testwebsite/adminzone/reports_details.aspx    Line: 2

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.

    === Pre-bind state information ===
    LOG: User = VSPLASH14\IWPD_1531(lucidtest)
    LOG: DisplayName = CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
     (Fully-specified)
    LOG: Appbase = file:///E:/inetpub/vhosts/lucidtest.co.in/httpdocs/testwebsite/
    LOG: Initial PrivatePath = E:\inetpub\vhosts\lucidtest.co.in\httpdocs\testwebsite\bin
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\inetpub\vhosts\lucidtest.co.in\httpdocs\testwebsite\web.config
    LOG: Using host configuration file: \\?\C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet.config
    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    LOG: Post-policy reference: CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    



    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

    clent server doesn't support frame 3.5 ,So it can't be install there if any one have some idea to resolves this please send as soon as possible its urgent

    if any posasible way to solve this problem without installing any thing in clent machine,its apriciatable

    my code in .aspx file

    <%

    @ Page Title="" Language="C#" MasterPageFile="~/adminzone/MasterAdmin.master" AutoEventWireup="true" CodeFile="reports_details.aspx.cs" Inherits="adminzone_reports_details" %>

    <%

    @ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
     

     

    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

    <

    asp:Content ID="Content1" ContentPlaceHolderID="head" Runat

    ="Server">

    </

    asp:Content

    >

    <

    asp:Content ID="Content2" ContentPlaceHolderID="cphVistaWeb" Runat

    ="Server">

    <%

    --OM --%>

    <

    div style="margin:20px 0px 20px 0px;width:864px"

    >

    <

    CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"

     

    AutoDataBind="true" ReportSourceID="CrystalReportSource1" BorderStyle="Solid"

     

    DisplayGroupTree="False" Height="1047px" EnableTheming="True" ToolbarStyle-Width="740px"

     

    HasViewList="False" Width="741px" HasRefreshButton="False"

     

    HasToggleGroupTreeButton="False" HasExportButton="True"

     

    />

    <

    br

    />

     

    <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">

     

    <Report FileName="report.rpt"> </Report>

    </

    CR:CrystalReportSource

    >

    <

    div style="margin-top:20px;

    ">

     

    <asp:Button ID="btnBack" runat="server" Text="Back" PostBackUrl="~/adminzone/reports.aspx" />

    </

    div

    >

    </

    div

    >

    </

    asp:Content

    >

    • Moved by CoolDadTx Monday, October 3, 2011 2:11 PM Reporting related (From:Visual C# General)
    Sunday, October 2, 2011 7:14 PM

All replies

  • Hello Nibi,

     

    the server is updated with the 3.5 framework since 2005, with VisualStudio framework2.0, I have the other way with VisualStudio 2008 framework3.5

     

    Regards.


    Carmelo La Monica

    Blog http://community.visual-basic.it/carmelolamonica/

    WordPress http://carmelolamonica.wordpress.com/

    Twitter  http://twitter.com/carmelolamonica

    Sunday, October 2, 2011 7:37 PM
  • Hello Nibi

    You have defined this......

     

    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

    clent server doesn't support frame 3.5 ,So it can't be install there if any one have some idea to resolves this please send as soon as possible its urgent

    if any posasible way to solve this problem without installing any thing in clent machine,its apriciatable

    my code in .aspx file

    .................

    By Carmelo Sir point of view is so perfect that your report viewer  version is Version=10.5.3700.0, which will support Framework 3.5

    It means framework 3.5 does not exists in client machine that's why it is throwing error in server machine.

    Solution:

    You should to install framework 3.5 in client machine that's may be resolve your prole. But framework 3.5 doesnot support to client machine that's you have defined

    If you are using Crystal Report in your machine by default it will take your Version=10.5.3700.0,. It's another solution is that don't use Crystal Report viewer Use Reportviewer to show your report. It may support to you

    Or try to use Framework 2.0 when you are deploying your projects

    Why i am telling this because in your client machine framework 3.5 is not supporting. So you should work as your client requirment.

    For report view Here is one example for you

    Dynamic Binding Of RDLC To ReportViewer

    And dozens of website in google you should find out from google

     


    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Monday, October 3, 2011 6:05 AM
  • Hello Sir,

    Thank u for your quick replay but if i have change my frame work in visual studio  also it didn't work

    as u said i am trying report viewer also but it is also given error in hosting server that-

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

    Source Error:

    Line 56:     <add assembly="CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
    Line 57:     <add assembly="CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />-->
    Line 58:     <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    Line 59:     <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    Line 60:    </assemblies>


    Source File: E:\inetpub\vhosts\lucidtest.co.in\httpdocs\testwebsite\web.config    Line: 58

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.

    === Pre-bind state information ===
    LOG: User = VSPLASH14\IWPD_1531(lucidtest)
    LOG: DisplayName = Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
     (Fully-specified)
    LOG: Appbase = file:///E:/inetpub/vhosts/lucidtest.co.in/httpdocs/testwebsite/
    LOG: Initial PrivatePath = E:\inetpub\vhosts\lucidtest.co.in\httpdocs\testwebsite\bin
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: E:\inetpub\vhosts\lucidtest.co.in\httpdocs\testwebsite\web.config
    LOG: Using host configuration file: \\?\C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet.config
    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    LOG: Post-policy reference: Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/testwebsite/fc92cc24/a8ddca8f/Microsoft.ReportViewer.WebForms.DLL.
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/testwebsite/fc92cc24/a8ddca8f/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.DLL.
    LOG: Attempting download of new URL file:///E:/inetpub/vhosts/lucidtest.co.in/httpdocs/testwebsite/bin/Microsoft.ReportViewer.WebForms.DLL.
    LOG: Attempting download of new URL file:///E:/inetpub/vhosts/lucidtest.co.in/httpdocs/testwebsite/bin/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.DLL.
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/testwebsite/fc92cc24/a8ddca8f/Microsoft.ReportViewer.WebForms.EXE.
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/testwebsite/fc92cc24/a8ddca8f/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.EXE.
    LOG: Attempting download of new URL file:///E:/inetpub/vhosts/lucidtest.co.in/httpdocs/testwebsite/bin/Microsoft.ReportViewer.WebForms.EXE.
    LOG: Attempting download of new URL file:///E:/inetpub/vhosts/lucidtest.co.in/httpdocs/testwebsite/bin/Microsoft.ReportViewer.WebForms/Microsoft.ReportViewer.WebForms.EXE.
    



    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

    Monday, October 3, 2011 9:45 AM
  • Hello

    This error means you're using the SQL Server Reporting Services ReportViewer control in your web application
    , and the server can't find the proper DLL. All you have to do is deploy them to your server. With Visual Studio
    2008, the location of the ReportViewer DLLs has changed. You now find them at C:\Program Files\Microsoft Visual Studio 9.0\ReportViewer.
    The first way to get these on your server, and this only works if you run your own server, is to directly copy them into the C:\Windows\assembly folder, and reboot the server (this reloads the GAC). If a reboot is out of the question, you can use GACUTIL.EXE to copy and register the DLLs.
    If you're in a shared hosting environment, reference the DLLs from the VS 9 path listed above, and set the Copy Local=True (select the DLL and open the Properties tab). This will copy the DLLs into your applications BIN folder, and look for them there first. You can then deploy to a shared host, making sure to copy all the contents of BIN.


    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Monday, October 3, 2011 10:11 AM
  • hi. very hard
    Wednesday, October 26, 2011 8:27 AM