Crystal Reports Viewer Toolbar Images Missing
Every time deploy crystal report into server i faced many problems. Yes. Every time! One of the most common issue is “crystal reports viewer toolbar images missing”.
1. What is happening after install Crystal Report Redistribution package?
By default, after crystal report redistribution package installed into the machine, it will copy all crystal report related files into this folder C:inetpubwwwrootaspnet_clientsystem_web2_0_50727, and depend on which .Net framework you are using, it will install accordingly into the framework version folder. So when you check the folder it will look like this
2. How it’s happened?
By default, IIS has a “Default Website”, any web application creates under this website will have no issue. When an application creates in different website, for e.g. http://localhost:8080, crystal report can’t find the location of the images file.
3. Let’s troubleshoot step by step
1. Right click on your report viewer and view page source.
2. You will find this in head section
</title><link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css" rel="stylesheet" type="text/css" /></head>
- Copy it and try it from the browser. You will notice the link actually points back to root directory.
4. What is the solution?
Easy! copy all file from “C:inetpubwwwrootaspnet” into your root directory. Again! Is root directory!
So it depends on yours .Net Framework version. Copy the right version into the application root folder. Or you can copy all folder under (C:inetpubwwwrootaspnet_client) to root directory.