ASP.NET 2.0 Crystal reports failing on server

M

Mike

Hi

We are developing an ASP.NET 2.0 application and using the in built Crystal report system that it comes with.

We have everything running fine on our development server but when we publish the site to our production server - as soon as we visit the site to test it we get a horrible message from crysta reports that we just dont understand as below

==========================================================================
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 53: <error statusCode="404" redirect="/ErrorMsg/FileNotFound.htm"/>
Line 54: </customErrors>
Line 55: <httpHandlers><add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers></system.web>
Line 56: </configuration>


==============================================================================

Is this some type of Licencing issue ? Does it need to have a separate runtime Licence applied to the server ?

Any ideas ?

Thanks

Michael
 
B

BFG

Mike,

I just ran into the same issue. You are missing the assemblies and
dll's that you need.

All you need to do is the following, it worked for me:

Open up Visual Studio 2005--
Create a new web setup project--
Right click on the project name and go to properties--
Click the pre-requisites button--
Here you will see the option of adding Crystal Reports for .NET, click
the checkbox--
Then do a build---

Take the build and deploy it to the production server and then run it.
It will then install everything you need for Crystal Reports and you
should be good to go.

BFG
 
G

Guest

I am not certain that this is the solution but I will take a stab at it.

I have had too many headaches with Crystal Reports to remember so I feel
your pain. That is neither here nor there though.

One question I have is whether or not Visual Studio is installed on the
production server. I think the Crystal Reports library that is distributed
for free (version 10.x that you are using) is bundled with Visual Studio 2005
(and not the .NET framework). If only the .NET framework has been installed
on the production server (and not Visual Studio 2005), then I would guess
that the Crystal Reports library is missing (which is what the error appears
to be stating). You should be able to copy the assembly to the GAC on the
production server and everything should work fine.

Now, if you are using things such as the CrystalReportViewer control, there
will be another set of problems when deploying it to the server (you won't be
able to simply copy the project to the server without some additional
configuration...at least that is what happened to me). If you are like me
and have decided to ditch the viewer control and export the reports to PDF
format through code, no additonal configuration should be necessary.

I hope this has helped some and not confused the issue.

Jason Richmeier
 
B

BFG

The situation that Jason describes with having only the framework
without Crystal Reports Library is exactly what I addressed with my
solution. It installs the CrystalDecisions library. I'm sure that is
your problem.

Good Luck, Mike!

BFG
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top