Last post Dec 24, 2009 03:46 PM by FireMedNet
Dec 24, 2009 03:46 PM|FireMedNet|LINK
I found many posts online from other developers who had the same problem as me, but none of them had the right solution. The problem is: A crystal report works fine on your development server. It displays right, the tool bar buttons look right, and they
work correctly. When the report goes to the development server, the toolbar is on the report, but the button images are missing, and nothing happens when you click them.
It turns out tis happens because there is a folder missing on your deployment server called: "ASP.NETClientFiles". This folder should be in the "v2.0.50727" folder which should be in the "Framework" folder which should be in the "Microsoft.NET" folder which
should be in your "Windows" (or "WINNT" depending on your Windows server version) folder. I tried without success to fix this by uninstalling all versions of ASP.Net and then reinstalling them. What worked was to copy the folder from my development server
and put it in the right location on my deployment server. Then I had to open a windows command prompt and enter the following command: %windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe
Running the aspnet_regiis.exe command creates a virtual directory in your default website in IIS that Crystal reports needs in order for the button images and Js files to work.
You can check to see if this solution will help you by opening IIS, opening the default website, opening the 'aspnet_client" folder, then the "system_web" folder, then the "2_0_50727" folder, and making sure that the "CrystalReportWebFormViewer4" (this folder
might be named "CrystalReportWebFormViewer3" depending on your version of Visual Studio) folder exists, and that it has the subfolders : "css", "html", images", "js".
That solved the problem.