SAP Knowledge Base Article - Public

1216090 - Err Msg:"Failed to render the page" when running a VS .NET application


  • An application uses Visual Studio .NET (VS .NET) and Crystal Reports version 9 as its reporting development tools.
  • The report contains an image saved as a bitmap (BMP). When deploying the application to the production web server and attempting the run the application, the following error message appears:
    • Failed to render the page
  • Why does this error message appear and can you resolve it?



The error message appears because Microsoft Internet Information Services (IIS) application settings are not properly configured.

One reason the report fails to render a page is that IIS application setting is not turned on. To configure the IIS application settings:

  1. In IIS under 'Default web site', right-click the 'crystalreportviewers' virtual directory and select 'Properties'.
  2. In the 'Application Settings' area, click 'Create' and then click 'OK'.

Another reason the report fails to render the page is that Crystal does not have enough permission to create temporary image files. There are two options to give Crystal Reports enough permissions to create temporary image files:

Option One

Edit the machine.config, so that ASPNET can run under the local system account. To Edit the Machine.config file:

  1. Locate and edit the Machine.config file.
  2. Under the tag <ProcessModel>, change the "Username" attribute from "machine" to "system"
  3. Restart IIS (at the command prompt type "iisreset")

Option Two

Crystal Reports creates temporary image files and stores them into a folder. Give this folder full permission to the ASPNET account. If the ASPNET runs under machine account, then the temporary image files are created in the 'C:\Documents and Settings\<Machine Name>\ASPNET\Local Settings\Temp' folder. If the ASPNET runs under system account, then the temporary image files are created in the C:\winnt\temp folder.

NOTE: To find out security risks on running ASPNET account under system account, please refer to Microsoft Knowledge Base article 315158.



NET FAILED RENDER PAGE OLE OBJECT PICTURE BITMAP BLANK Crystal Reports for Visual Studio Development Installation and Deployment Report Viewing , c2013414 , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem


Crystal Reports 2008 V1 ; SAP Crystal Reports XI R2