How to Configure Crystal Reports on a Shared Windows Hosting Server
This guide shows how to set up your ASP.NET application to run Crystal Reports on your Shared Windows Hosting account.
Understanding the Crystal Reports Components
You'll see several Crystal Reports product names. This table shows what each one is and where it goes.
| Component | Purpose | Where It's Installed |
| Crystal Reports 2025 (or 2020, 2016) | Report designer for creating and editing .rpt files | Developer or power-user computers only |
| SAP Crystal Reports, version for Visual Studio | Free .NET SDK and runtime for embedding reports in your application | Development computer: EXE installer. Web server: Runtime MSI |
| Crystal Reports Runtime 13.0.x (e.g., 13.0.40) | The engine that runs reports on your website | IIS / application server |
Before You Begin
Step 1: Check whether your application pool is 32-bit or 64-bit
Your application pool's bitness decides which Crystal Reports components you need, so check it before you install anything.
- Log in to Plesk.
- Go to Websites & Domains > Hosting & DNS > Dedicated IIS Application Pool for Website.
- Check the Enable 32-bit applications option:
- Checked: your site uses a 32-bit application pool.
- Unchecked: your site uses a 64-bit application pool.
Step 2: Check folder permissions
Make sure Read/Write permissions are set on:
- Your website's root folder
- The Windows TEMP folder
- Any folder where reports are stored or export files (such as PDFs) are created
Set Up Your Development Environment
Step 3: Download Crystal Reports for Visual Studio
- Go to the SAP Software Downloads portal - https://origin.softwaredownloads.sap.com/public/site/index.html.
- Sign in with your SAP account.
- In the Product section, search for SAP Crystal Reports, version for Visual Studio.
- Download the installer that matches your Visual Studio version:
- 32-bit installer: Visual Studio 2019 and earlier
- 64-bit installer: Visual Studio 2022 and later
Note: The development installer (EXE) must match your Visual Studio bitness. The runtime your website uses on the server must match your application pool bitness from Step 1.
Step 4: Install and verify (on your development computer)
Important: Do these steps on your local development computer, not on the hosting server. On shared hosting, the server already has the Crystal Reports runtime installed.
- Make sure you have a Visual Studio version that SAP supports. The supported versions are listed on the SAP download page.
- Run the Crystal Reports for Visual Studio installer.
- Open Visual Studio and go to Add > New Item. Check that Crystal Report appears in the list of item templates.
Step 5: Configure your web project
- Add the Crystal Reports references your application needs. Common ones are:
- CrystalDecisions.CrystalReports.Engine
- CrystalDecisions.Shared
- CrystalDecisions.Web
- Leave Copy Local set to False on the Crystal Reports assemblies. The server uses its installed Crystal Reports runtime.
- Build your application and test your reports locally.
Deploy to the Server
Step 6: Upload and test your application
- When everything works locally, publish your application and upload the DLL files to the bin folder in your hosting account.
-
Ensure `web.config` assembly bindings match the installed runtime version if your app uses binding redirects. You can identify the required version by checking the relevant application configuration file (
.exe.config), which is typically located in the same directory as the application's executable. Update the binding redirect in theweb.configfile to match the installed Crystal Reports runtime version.Example:
<bindingRedirect oldVersion="0.0.0.0-13.0.4000.0" newVersion="13.0.4000.0" />
Note: The version shown above is for reference only. Replace it with the actual Crystal Reports runtime version installed runtime version.
- In Plesk, recycle the application pool.
- Test at least one report. Make sure you can:
-
- View the report
- Export it to PDF
- Refresh its data
Known issues and their resolutions:
Error : Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0' or one of its dependencies. The system cannot find the file specified.
Solution:
The errors occur because the Bin directory is missing the required DLL files. Additionally, although Crystal Reports version 13.0.40 is installed, the application is still referencing the older version 13.0.20.
To resolve the issue, please work with your web developer to add the following code to the web.config file.
|
<runtime> |