Skip to Content
author's profile photo Former Member
Former Member

ASP.NET Crystal Report "Print" Icon doesn't work

Hello Experts,

I have a ASP.NET 2.0 application with integrated Crystal Reports(Version=10.2.3600.0) built and deployed on Windows 2008 64-bit server. I made an application pool, and set the flag=true(Enable32biton64bit).My application, seems to be running fine and also crystal reports works as well.But when I try printing reports, I get an exception:"The publisher could not be verified. Are you sure you want to install this software."

But I don't get any exceptions while exporting the file into any other formats. It seems like only on "Print'.

Thanks,

TRAKTECH

Edited by: traktech on Dec 21, 2011 5:51 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

9 Answers

  • Best Answer
    Posted on Dec 21, 2011 at 05:34 PM

    Win 2008 is not supported by CR 10.2. See the wiki [|http://wiki.sdn.sap.com/wiki/x/b4JiAw] for more details.

    Ludek

    Follow us on Twitter http://twitter.com/SAPCRNetSup

    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2011 at 05:59 PM

    So, you mean I need to download :CRRedist2008_x64.msi. And do the Merge Module in my Setup file and change the Version # in the web.config file.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2011 at 06:32 PM

    When I installed CR2008 , I get following error:

    Parser Error Message: The base class includes the field 'CRViewer', but its type (CrystalDecisions.Web.CrystalReportViewer) is not compatible with the type of control (CrystalDecisions.Web.CrystalReportViewer).

    I changed, Version=10.5.3700.0, in all my web.config file. Please suggest me If I'm doing any wrong.

    Add a comment
    10|10000 characters needed characters exceeded

    • Editing the web.config will not help.

      If you have CR 2008 installed on your machine then remove all the 10.5 references from the application and add the version 12.0 references to application.

      Also use the version 12.0 viewer. It will be available in the tools list only if CR 2008 is installed on your machine.

      Bhushan.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2011 at 07:59 PM

    Bhushan,

    I Installed this version, *CRRedist2008_x64.msi (64 bit Intel)* from here:http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=56787567.

    But I have questions:

    First, I have application with asp.net 2.0 and CR2005 build on 32-bit machine. But when creating Setup file, I have merged file CRRedist2005_X64.msi (64 bit Intel) # , created the setup file ONLY to run on 64-bit machines.

    And then tried running the application, as mention on my first post.But when I get exception:"Publisher could not be verified....", then as per Ludek I installed *CRRedist2008_x64.msi (64 bit Intel)*, and changed my web.config file with crystal report version 10.5.

    Do I need to Install version 12, instead. Sorry, I'm lost...

    Edited by: traktech on Dec 21, 2011 9:10 PM

    Add a comment
    10|10000 characters needed characters exceeded

    • Got it.

      ok, Just to clear the confusion here is what have you done.

      - You have developed an application ( Win or web not sure) with VS 2005 and CR for VS 2005 (10.2).

      - you have created a setup including the 10.2 64 bit merge modules (merge modules are the CR runtimes).

      - You have deployed the application on Windows server 2008 64 bit machine where you are facing the issues.

      - On top of this you have also installed the CR 10.5 MSI (whish are again runtimes) on the server, which will nothing but mess up things even more.

      Now, as Ludek has mentioned CR for VS 2005 (10.2) is not compatible to work with Win 2008 server.

      The only option for you is to upgrade the crystal reports version (not only on the server but also on the dev machine).

      You can upgrade to VS 2008 and CR for VS 2008 (10.5), for that you will have to install VS 2008.

      Or you can go for CR 2008 which will work with both VS 2005 and VS 2008.

      hope this makes things clear.

      Bhushan.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2011 at 08:48 PM

    Bhushan,

    You're absolute correct. To resolve my issue, you mean I need to Install CR2008 MSI on the Win 2008 Server, right??

    And also no need to change the web.config files.

    Please comment and appreciate your help!

    Edited by: traktech on Dec 21, 2011 9:49 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2011 at 10:08 PM

    Bhushan,

    I tried your steps, first Installing CR2008 on my DEV machine and had all references on my Reportviewer. aspx

    <%@ Register Assembly="CrystalDecisions.Web, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"

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

    And added other references in web.config file:

    <httpHandlers>

    <add verb="" path=".asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <add verb="" path="_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

    <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web,Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

    </httpHandlers>

    After these references added to the application, ran the Report on my Dev unit. It didn't work, I'm sure I did what you said earlier. Please check this.

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2011 at 03:16 PM

    Bushan/Ludak,

    I'm in the final process of knocking down this, I followed all your comments and changed the web.config file with:

    <assemblies>

    <add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

    <add assembly="CrystalDecisions.ReportSource, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

    <add assembly="CrystalDecisions.Shared, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

    <add assembly="CrystalDecisions.Web, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

    <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

    <add assembly="CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

    <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

    <add assembly="Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

    </assemblies>

    And when I ran a report, i get the Javascript error: Expected ';' Reportviewer.aspx. This is the Line:54(View Source).

    var __CRYSTALREPORTVIEWERONSUBMIT12=__doPostBack;__doPostBack=function(t,a){bobj.event.publish('saveViewState');__CRYSTALREPORTVIEWERONSUBMIT12(t,a);}function WebForm_OnSubmit()

    Thanks , I really appreciate all your Help!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2011 at 04:55 PM

    while debugging on my 32-bit local machine notice:

    "BobJ Undefined"

    Add a comment
    10|10000 characters needed characters exceeded

    • When you deploy the runtime, the MSI assumes the app will be installed under default app pool and configures the viewer as such:

      C:\inetpub\wwwroot\aspnet_client\system_web\2_0_50727\crystalreportviewers12

      If you are using custom app pool, you will have to configure the viewer for it. Do a search for "BobJ Undefined".

      - Ludek

  • author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2011 at 11:29 PM

    It worked on my Server machine,n't on DEV unit. Only change is Build the appplication with CR2008 assembly info in web.config and deployed onto server.

    Thanks for your Help!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.