Click to See Complete Forum and Search --> : [RESOLVED] deployment problem from crystal report


jasonli
July 21st, 2006, 01:58 PM
I am using VS 2005 and asp.net 2.0 to develop web application. In the web application, I added "Crystal Report" reference and created a rpt file in project.

I developed on Windows XP machine, and deployed on Windows 2003 Server. When I access the web site on Server, I got this error:

Exception Details: System.Web.HttpException: The file has not been pre-compiled, and cannot be requested.

If I check "Allow this precomplied web site to be updatable" when deployment, I got the another error like:

Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies.

On Windows 2003 Server machine, I only installed asp.net 2.0. So, how can I fix it? Do I have to buy licence from CrystalReport?

vbnov
July 21st, 2006, 02:26 PM
On the machine with VS2005 installed, go to the directory:



C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports



In that directory there should be a file named CRRedist2005_x86.msi



Copy that file to somewhere on the server then double-click it. This will install the Crystal Runtime for VS2005. They don’t require registration or activation keys any more.

Let me know how it goes

jasonli
July 21st, 2006, 04:11 PM
Yes, it works fine now. Thank you very much.

However, another problems came up. I think I should write another new post for it.

vbnov
August 1st, 2006, 09:40 AM
Jason,

When you try to view the crystal report from the server, does the tool bar at the top of the crystal report appear. Mine appears with all x's. No images appear on the tool bar. Any ideas?

jasonli
August 1st, 2006, 11:23 AM
You mean the toolbar in crystalreportviewer control. Yes, you can set the tollbar. However, I don't like that. So, I usually export to pdf directly from crystalreport document and let user see the pdf.