Crystal Reports code customizations generally only work in Full Trust or High Trust security mode and will not work under the Medium Trust security mode typically used by application hosting providers.
Creating a Crystal Reports Report File
Adding a Crystal Report to Your Iron Speed Designer Application
Adding Crystal Reports References to Your Project
Opening Crystal Reports PDF Files in Separate Browser Windows
Deploying a Crystal Reports Application