Locked crystalreportviewer toolbar images missing

  • Wednesday, July 19, 2006 10:54 PM
     
     

    I've seen a few posts here about this pesky problem but none of them solve my exact problem. I have a VS2005 web project with a crystalreportviewer control in it.  If I run it locally, I get all of the crystal navigation images (next, prev, etc.). But when I copy/paste deploy to another webserver the images are missing.

    Here's what I've tried:

    1. Made a setup project that included Crystal as a "prerequisite". Deployed from a setup.exe and everything worked but the images were still missing.

    2. Found the path to the missing images in the browser view source, then made a folder in my web project to mimic it (e.g., /aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/images/toolbar/). Copy deployed and this didn't work.

    Anyone have any ideas about what to try?

Answers

  • Tuesday, August 01, 2006 3:04 PM
     
     Answered

    Just in case that fails, this is what I did....

    First locate the missing images on your development box. If you're using Framework 2.0, I'm guessing they're sitting in:

     

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\CrystalReportWebFormViewer3\Images\ToolBar

     

    If you're using an earlier version of the Framework, adjust the path above (e.g., try v1.1.4322).

     

    Next, add a hard-wired folder structure within the virtual directory on the web server you are deploying to. The folder structure in the virtual directory has to be at the same level in IIS as the rest of the asp.net code.

     

    For example, if your asp.net application is called MyApp, then under the virtual directory where MyApp resides, you must make the following folder structure:

     

    MyApp

       -App_Code

       -App_Data

       -aspnet_client

          -System_Web

             -2_0_50727

                -CrystalReportWebFormViewer3

                   -images

                     -toolbar

                                *all the images here

       -bin

       Default.aspx

       Web.config

     

     

    This aspnet_client folder MUST be at the same level as the bin folder in the virtual directory. Once you have this folder structure, COPY the images folder you found locally out to the folder structure that you set up on your deployment web server.

     

    This is a total hack, the Crystal Reports folks at Business Objects should be embarrassed.

     

All Replies

  • Friday, July 21, 2006 5:17 PM
     
     Proposed Answer
    This is happening because you do not have the correct virtual directory setup in your website that your application is running off of.  You need to create a virtual directory to the C:\Inetpub\aspnet_client folder naming it "aspnet_client".  The path is relative to the web site itself, not to the application.
    • Proposed As Answer by ncollier Tuesday, February 16, 2010 10:30 PM
    •  
  • Tuesday, August 01, 2006 2:16 PM
     
     

    Could you be more descriptive with your answer? I am having the same problem as described above where I go to view the report and the crystal report navigation buttons do not appear and are missing.

    The location where the images are trying to be pulled from is

    src="/crystalreportwebformviewer2/images/toolbar/logo.gif"

    I have installed Crystal through an .msi file setup and now the nav buttons do not show up?

    Thanks for your help

  • Tuesday, August 01, 2006 2:38 PM
     
     

    I found a more detailed solution and the link is

    http://blogs.wwwcoder.com/shaunakp/archive/2005/02/09/1708.aspx

    Thanks

  • Tuesday, August 01, 2006 3:04 PM
     
     Answered

    Just in case that fails, this is what I did....

    First locate the missing images on your development box. If you're using Framework 2.0, I'm guessing they're sitting in:

     

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\CrystalReportWebFormViewer3\Images\ToolBar

     

    If you're using an earlier version of the Framework, adjust the path above (e.g., try v1.1.4322).

     

    Next, add a hard-wired folder structure within the virtual directory on the web server you are deploying to. The folder structure in the virtual directory has to be at the same level in IIS as the rest of the asp.net code.

     

    For example, if your asp.net application is called MyApp, then under the virtual directory where MyApp resides, you must make the following folder structure:

     

    MyApp

       -App_Code

       -App_Data

       -aspnet_client

          -System_Web

             -2_0_50727

                -CrystalReportWebFormViewer3

                   -images

                     -toolbar

                                *all the images here

       -bin

       Default.aspx

       Web.config

     

     

    This aspnet_client folder MUST be at the same level as the bin folder in the virtual directory. Once you have this folder structure, COPY the images folder you found locally out to the folder structure that you set up on your deployment web server.

     

    This is a total hack, the Crystal Reports folks at Business Objects should be embarrassed.

     

  • Friday, August 25, 2006 2:04 PM
     
     

    Not sure if this will be of any help as each case is different. I had the same problem in windows 2003 machine. What I did was the following:

    1. I located the aspnet_client virtual directory (from file) in iis

    2. Changd the directory security to aonymous access and integrated security

    3. Made it an application

    4. Changed ASP.Net version to 2.0

    That is it. As I said before each case it different. So this solution may not work for you. No harm in trying it though!

    Thanks
    -jojobar

  • Wednesday, October 04, 2006 2:39 PM
     
     Proposed Answer

    Here is the solution

    Copy toolbar images from

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\CrystalReportWebFormViewer3\Images\ToolBar

    folder to some folder on virtual root directory of your project.

    In my case I used, <website's root path>/Reports/ReportImages

    After that change property of ReportViewer as below,

    ReportViewer1.ToolbarImagesFolderUrl = "Reports/ReportImages/"

    Done.

    Shabdar

     

    • Proposed As Answer by michael sulis Tuesday, March 16, 2010 7:02 PM
    •  
  • Thursday, October 11, 2007 9:01 PM
     
     Proposed Answer
    Great solution, thank you!

    The only thing I had to do, was create a virtual directory under my application's directory that points to the aspnet_client folder under c:\inetpub\webroot where the remaining needed structure already existed.

    Thank you though, without this help, I'd still be struggling with this!
    • Proposed As Answer by neonprimetime Monday, June 16, 2008 9:42 PM
    •  
  • Tuesday, April 22, 2008 1:58 PM
     
     
    Thanks Worked Great.
  • Thursday, January 22, 2009 3:34 PM
     
     
    i tried everything above and it still wont work.  what i know is the permissions are fine, the virtual directory doesnt work, the image path reference is right, and still nothing works... any ideas?  this is a production server and  i dont want to have to do something crazy to get it to work like it should.  running server 2008 and visual studio 2005 with crystal reports xi.
    Fonz be with you
  • Monday, April 27, 2009 6:51 PM
     
     
    I am having the same problem with the same setup as JimmysJams.  I have tried everything including uninstall/reinstall ASP.NET and client scripts, create virtual directory in app pointing to aspnet_client folder.  The icons WILL NOT show in the reportviewer toolbar.  View Source shows the path the page is loading them from is where they are...but they don't show.  Is this a permissions issue on the aspnet_client folder?  What should the permissions be?  I don't think this is a Crystal Reports issue (if it was the report itself wouldn't render).  I am losing my mind over this one...please help.

  • Wednesday, May 13, 2009 3:32 PM
     
     
    Have experienced the same on a single machine running frameworks 1.1 through 3.5 (including 3.0).  The app is running 1.1 and setting virtual directories did not help.  This machine did display the Crystal 11 report viewer previously but it's missing now following an uninstall of VS2005 (it still has VS2003 and VS2008).

    Will post the solution once found...
  • Thursday, May 14, 2009 11:00 PM
     
     
    You are correct. I have to totally hack the viewer. I used filemon as explained in this forum and follow all the passes that AllInOne.JS and other JS look for then I hard copied the js files and the dhtmlimages folder to what it wants to be.
    It worked fine, but I did not agree to this solution. I went to Add Remove Programs, then I found that there is an installation of older Crystal Reports comes with some software.
    I decided to start from scratch:
    - Remove all crystal reports versions.
    - Hard delete all folders related to Bussines Objects.
    - Run a Registery Cleaner >>>>>> Here is the solution I think.
    - Reinstall Again.
    Then it works fine and the images are shown and no js scripts errors in vista or xp.

    but my problem is that still I do not have a solution to my older problem tell now (even ASP.Net crystal report viewer is working perfectly), still I'm getting this error when I use crystal reports as a webservice + parameters.

    "Object reference not set to an instance of an object"

    Realy I which I could skip this error with no luck since three months.

    Please refere to my old post here: http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/776dc7d9-4fb8-40a3-84e0-86034fe7245f

    This may not be related to 2003 Server, but to the client viewer in the client because if I host the report with asp.net using webservice asmx url, it works fine.
  • Friday, May 15, 2009 2:59 PM
     
     

    Have heard the missing toolbar issue can be caused by a corrupted or missing Crystal run-time (using Crystal 11).  Will post more once can test this proposed fix on the deviant machine.  Hope it's that easy...

  • Friday, June 12, 2009 4:30 PM
     
     
    I have experienced a similar issue on servers running multiple .net Frameworks.

    I right clicked on the broken image, selected the source, and pasted it into a new browser.  Instead of hte image, I got this message:

    Server Application Unavailable
    The web application you are attempting to access on this web server is currently unavailable

    etc.

    In the event log, under application events, the message description was "It is not possible to run two different versions of asp.net ont he same IIS process"

    I moved the crystalreportviewers11 application into an application pool running the same framework as my reports, and that resolved the missing image issue.

  • Monday, February 01, 2010 10:12 PM
     
     
    This is why I've recently opted for the far less painful method of delivering reports on stone tablets whcih I'll chisel using only my fingernails. CR deployment has been riddled with major deployment problems like this for the 8 sad years I've been using it. The constant changing of ownership doesn't help either, as old support links are not maintained.

    FWIW, I agree with Shabdar. The easiest solution to this mess is to set the property "ToolbarImagesUrl" of the CrystalReportViewer to a local path like "ToolbarImages/" then create that folder and fill it with the GIFs from your development machine, located in the easy-to-remember path "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\CrystalReportWebFormViewer3\Images\ToolBar".

    If you can't find it, just search your dev machine for a folder called "Toolbar".

    Then deploy your app, wash your hands, and switch to another technology.
  • Thursday, June 17, 2010 7:21 PM
     
     

    Here is the solution

    Copy toolbar images from

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\CrystalReportWebFormViewer3\Images\ToolBar

    folder to some folder on virtual root directory of your project.

    In my case I used, <website's root path>/Reports/ReportImages

    After that change property of ReportViewer as below,

    ReportViewer1.ToolbarImagesFolderUrl = "Reports/ReportImages/"

    Done.

    Shabdar

     


    This worked for me. I also had to add the Tree Images folder content as well. However, I still can't get the Export and Print functions to work on app when published to the server; perhaps some css or js files need to be added as well???
  • Friday, July 02, 2010 1:27 PM
     
     

    I found that in IIS 7 that if you convert your aspnet_client folder (in the Default Website) to an application and then in the Authentication section of the aspnet_client application disable everything but Windows Authentication then it works.

    As i'm sure you understand by the hundreds of supposed solutions, this just worked in my case. I think it was the impersonation being enabled that was the main culprit.

    Good luck.

    SozzleSizzle.

  • Monday, July 19, 2010 1:03 PM
     
     
    Thanks a lot you have provided solution with clarity which i have not found at another blog. I have resolved my issue as well by you.
  • Monday, October 18, 2010 4:16 PM
     
     

    FreewillPDX.

     

    I am running into the same situation you posted here.

    I wonder if you got it resolved. I am hoping, yes. If that is the case Can you please post the solution here?

     

    Thank You


    sk