views:

2066

answers:

3

I have some Crystal Reports (V10) in an application (.NET 1.1) I inherited that is deployed in four "identical" environments. In three of the environments, they are working fine. In the fourth, the chart graphics are not visible in the web viewer. They are visible if you export the reports.

The IT guys swear everything is exactly the same in all four environments and have kicked the problem back to me to solve. I'm not sure how I'm going to do that since I can't get to the servers to check anything for myself. But I don't see how this can NOT be an environment issue.

It seems to me that Crystal has the necessary permissions to write the file and to retrieve it to render the export versions of the report, but the ASP WP can't access the graphic file when the page is rendered.

Thanks for any suggestions you might have to help me!

RESOLUTION From the IT guys: "We had to change the “Execute Permissions” on the CrystalReportsViewer10 folder within IIS from “Scripts only” to “Scripts and executables”. All of the other sites have only “Scripts Only” and they’re fine."

+2  A: 

There needs to be an IIS virtual directory called something like "CrystalReportViewers115". I think that the exact name changes between versions. This needs to be visible to your ASP.NET user. Start looking at the environments that work and see if they have this virtual directory installed, and compare it to the one on the failing environment. As another check, you should be able to enter in the URL for the images into a browser and see them. To find out the URL, right click on the picture and select "Properties". For example:
http://localhost/crystalreportviewers/images/toolbar/export.gif
You should see the picture when you browse directly to the URL.

Anthony K
Thank you. I knew I wouldn't be able to browse to the image in the "bad" environment, but the 403.1 error I get should help me "prove" that the environments are not the same.
Leslie
A: 

Hi everyone, can I please have your advice on the following?

The Crystal Report Toolbar Images display correctly in the development environment but when deployed on the production server these images fail to display correctly when accessing the site from outside the network. When I access the site on the production server from inside the network the images display correctly.

I have read several posts about this problem and they suggest that the problem is caused by the application not knowing the correct path to the folder containing the image files. I have tried many different path variations to this toolbar image folder but I can not get the images to appear correctly when I access the site from outside the network.

Here is my crystal report viewer control definition


The Web Application is in the directory c:\inetpub\wwwroot\nextgen\

I have included the aspnet_client directory and all of its associated files as part of my web project. So the full path to the toolbar images folder is:

C:\inetpub\wwwroot\nextgen\aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer3\images\toolbar

I have also put a copy of the aspnet_client folder in the directory C:\inetpub\wwwroot\ just in case this is somehow the "root" directory instead of C:\inetpub\wwwroot\nextgen.

When I access the website on the production server from within the network the images on the toolbar display fine. When I access it from outside the network they don't display. Can anyone help?

hitesh
This sounds like a permissions issue to me. Maybe you don't have the anonymous user enabled, so when you are in the network it knows who you are for Windows authentication, but outside the network it doesn't.
Leslie
+1  A: 

Go to Start->Programs->Microsoft Visualstudio 2008->Visual Studio Tools->Visual Studio 2008 Command Prompt

and type

aspnet_regiis -c


This will automatically copied the corresponding files...

Maloy Adhikari