----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: LovedJohnySmith Message 3 in Discussion Jayadevan, This behavior occurs because with the release of Crystal Reports for Visual Studio .NET 2005 , dynamic handling of images in a report has changed to use an internal mechanism. Previously in Crystal Reports for Visual Studio .NET 2003 and Crystal Reports 10 and earlier, images were managed by a file in the viewer's directory called CrystalImageHandler.aspx. Typically, problems with viewing images in a report had to do with access to the Viewer's virtual directory or ISAPI mappings on the viewer's directory, ultimately resulting in a failure to load and execute this file. With Crystal Reports for Visual Studio .NET 2005, CrystalImageHandler.aspx does not physically exist on the file system, but appears as a filename in the URL for an image. This is accomplished using <httpHandlers> tags in the application's web.config file. Using httpHandlers provides functionality similar to ISAPI mappings. When a CrystalReportViewer control or CrystalReportPartsViewer control is added to a web form in Visual Studio 2005, <appSettings/> and <httpHandlers/> tags are added to the project's Web.Config file as follows: <appSettings> <add key="CrystalImageCleaner-AutoStart" value="true" /> <add key="CrystalImageCleaner-Sleep" value="60000" /> <add key="CrystalImageCleaner-Age" value="120000" /> </appSettings> These settings ensure the clean-up of temporary images created when viewing a report. <httpHandlers> <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/> </httpHandlers> The <httpHandlers/> tag in this case is used to create a human readable URL that will contain a querystring created for the dynamic image. The CrystalImageHandler.aspx page does not actually exist, but rather implements the IHttpHandler interface, which is used for low level Request and Response APIs in ASP.NET with the CrystalDecisions.Web.CrystalImageHandler class. The resulting URL will place the CrystalImageHandler.aspx as part of the application's URL rather than accessing a physical file in the viewer's directory as with previous versions. For example, the URL to a report image displayed in the webform viewer would be: http://localhost/myWebApp/CrystalImageHandler.aspx?dynamicimage=abc123.png The CrystalImageHandler.aspx page does not exist in the \myWebApp folder. These tags should be automatically added to the project's web.config file when adding a viewer control to a web page or when migrating from an existing application built with VS2002 or VS2003. Hope this helps. Thanks, Smith http://johnysmith.spaces.live.com ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]