locked
Crystal report Issue in Shared web Server RRS feed

  • Question

  • User-1844410684 posted

    Hi

    I am getting the below error in my application .  Its an web applicaiton developed in VS2010 , and its been hosted in the shared webserver , where i cont install the Crystal Report , Please advise me a workaround  to do this in the shared environment

    Parser 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=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

    Source Error

    Friday, August 9, 2013 1:37 AM

Answers

  • User-578610739 posted

    Hi ,

    Dear no worry, this is very simple error. Your application which you deploy in shared web server required the same report dll version which you have in your local environment. And your shared server does not have same thing.

    To resolve, please read my second option, you have to copy your all dll in bin folder (by doing above post, the same as when you use any third party dll like itextsharp, excel interoperability etc.  ) and rebuild and re-deploy your app in shared server.

    so your application , will access crystal report dll from your local bin folder not from "c:/program/~/~" folder ( App or report dll searches same path in shared server as you have in local environment . By this step, You just tell that search in bin folder, not from general path )

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 12, 2013 2:31 AM

All replies

  • User1254462943 posted

    Check the Following is Present in ur Web Form Source

    <%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
    
    <%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>

    And Also the Check in Web Config

    <system.web>
        <compilation debug="true" targetFramework="4.0.3">
          <assemblies>
            <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
            <add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    ...................

    Focus On Version=13.0.2000.0

    it may be show s as version 10.5.3700.0

    Because of

    due to CRforVS_13_0_1.exe may installed in ur pc.  

    Version=10.5.3700.0

    then
    CRforVS_13_0_2.exe  For

    Version=13.0.2000.0

    So u can Manually code it ur source
    It Works For Me ...cHeck it Out

    Friday, August 9, 2013 1:59 AM
  • User-1844410684 posted

    Thanks

    After i did the above changes I am getting the below 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 'CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

    Source Error: 

    Line 88: 				<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    Line 89: 				<add assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    Line 90: <add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/> Line 91: 				<add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    Line 92: 				<add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    Friday, August 9, 2013 2:04 AM
  • User1254462943 posted

    Go To Vs 2010 Command Prompt and Check the File Exist Or the Versions on Ur GAC

    C:\Program Files\Microsoft Visual Studio 10.0\VC>gacutil/l CrystalDecisions.Web

    ..........

    The Global Assembly Cache contains the following assemblies:
    CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692
    fbea5521e1304, processorArchitecture=MSIL
    CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692
    fbea5521e1304, processorArchitecture=MSIL

    Number of items = 2

    And Also check the Name Spaces Present in Ur Coding :

    using CrystalDecisions.Web;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    


    Check tis .....

    Friday, August 9, 2013 2:48 AM
  • User-578610739 posted

    Hi Asprabahar,

    This error shows, that your server does not have the same version which you have.In development you have crystal report 13.0.... ,but in server it does not have.

    For this issue either you installed the same crystal report version on server

    or

    you may local copy of your report dll in bin folder(by right click on solution->binfolder, then select dll, then f4, select local copy option to true , save the solution and re-build )  and re-deploy. So it will get reference from bin folder , not from GAC .

    Check link:-- http://www.aspdotnet-suresh.com/2012/01/install-crystal-reports-in-visual.html

    http://social.msdn.microsoft.com/Forums/en-US/f129440e-2fd2-4c2f-a330-33b24d9ea011/crystal-for-vs2010-redistributable-or-deployment

    Friday, August 9, 2013 3:17 AM
  • User-1844410684 posted

    Hi

    My applcaition is hosted in the shared web sever , where i dont have access to  the server directly ..

    Friday, August 9, 2013 3:18 AM
  • User1254462943 posted

    http://stackoverflow.com/questions/3337302/building-net-application-for-different-versions-of-crystal-report-in-visual-stu

    by the Way u can Specify the Version from Web config try tis asprabahar

    Friday, August 9, 2013 3:52 AM
  • User-578610739 posted

    Hi ,

    Dear no worry, this is very simple error. Your application which you deploy in shared web server required the same report dll version which you have in your local environment. And your shared server does not have same thing.

    To resolve, please read my second option, you have to copy your all dll in bin folder (by doing above post, the same as when you use any third party dll like itextsharp, excel interoperability etc.  ) and rebuild and re-deploy your app in shared server.

    so your application , will access crystal report dll from your local bin folder not from "c:/program/~/~" folder ( App or report dll searches same path in shared server as you have in local environment . By this step, You just tell that search in bin folder, not from general path )

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 12, 2013 2:31 AM