Getting error while running web application with crystal reports - asp.net

I am getting error as below
Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine,
Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
or one of its dependencies. The system cannot find the file specified

I think the error is self-explanatory.
first probe: Is the DLL already in GAC (with given name, version)?
i.e Are the Crystal Report assemblies deployed, specifically those that were targeted while in development?

Crystal Reports components must be installed on the web-server, as they have COM dependencies.

Related

Error building empty website in VS2012

I am using Visual Studio 2012 Update 3 and whenever I create a new ASP.NET empty website and build it for the first time compilation is successful but I get a server error when accessing the site of "Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The module was expected to contain an assembly manifest."
If I then go back and build the website again I get a single error of "Object reference not set to an instance of an object" but no line number.
This error occurs whichever framework I am targeting and whether I am using C# or VB.
Can anyone point me in the right direction please?
Thanks,
Richard.
Possibly AjaxControl Toolkit is the issue.
Depending on your Framework version( 4.5, 4.0, 3.5 ),, install the correct version of AjaxControl Toolkit from here: http://ajaxcontroltoolkit.codeplex.com/releases/view/94873.
Another solution I found is to place System.Web.Extensions.dll and System.Web.Extensions.Design.dll directly in the Bin folder of your web application.

Asp.Net 4.0 Web Forms -Webpages.Deployment assemblie

I have a web application. The platform is Asp.NET 4.0 and I've used web forms. It's not MVC.
I'm getting an error.
System.IO.FileLoadException: Could not load file or assembly 'System.Web.WebPages.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Access is denied.
I've searched and the error is about MVC. I couldn't find any answer why it's happening at webforms. Also the project is working well at localhost. But when I publish it, I am getting that error.
Thanks...
Looks like you have a broken reference to a DLL in production - the DLL may not be in the GAC on the machine you pushed to. To verify, you can compare the bin folder locally to that on the production machine.
If it's not available on the deployment machine, right click the reference in your "References" folder and set "Copy Local" to true - then redeploy.

Crystal Reports Version Conflict

I developed a web app that creates crystal reports with VS Crystal report version 13.0.2000.0. I tried publishing it and putting it in the wwwroot folder (IIS7). When I run it, it give me this error:
Parse Error Message: Could not load file or assembly 'CrystalDescision.Web, Version 13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file.
Source Error:
<% Register Assembly="CrystalDecision.Web Version=13.0.2000.0, Culture=Neutral, PublicKeyToken=692fbea5521e1304"
When I run the command %windir%\assembly on the server, the version is 10.5.3700.
My questions is which crystal report should I download/buy to upgrade my server crystal reports? Because there was many links on the SAP website (ie. Crystal Report, Crystal Report Server, Crystal Report Viewer, and more).
Have you installed the Crystal Reports 2010 runtime (Redist Installation package) on the computer that you are having trouble? The 13.0 version is CR for VS 2010 and you can download the runtime here
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/22083
It is all about different version.
Remove the references to Crystal*.* and right click on References to add the correct ones
Assemblies, Extensions
You will see everything installed on you computer environment.
Select the ones with the same version that is on your web.config
Make sure the versions on web.config match the whole fu..ing s.it
This is a pain on the ass brought to you by Crystal Reports !

Crystal Reports Missing Assembly Issue

I have downloaded the sample from Here i have crystal reports 2008 (12.0.0.549) and vs 2010 is installed. I am getting the following error.
Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
Can any one guide how to add missing assembly
Install the Crystal Reports 2010 and ensure that the you've NOT got a "Client Profile" selected under Target Framework in the Applicaiton tab under the projecst Propertiese
It didn't seem to work for me with a Client Profile.
Note: Cyrstal reports can still be 'designed' with CR2008.
Some more info on the SAP forum here.

Converting VS2008 Solution to VS2010 Creates compile errors in ASP.NET 3.5 SP1

I am converting a large solution from Visual Studio 2008 to Visual Studio 2010. The conversion completes without errors. When I go to build the solution one particular section of the application throws error but it didn't when the solution was 2008.
Error 1 Could not load file or assembly 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. C:\MyProject\Results\Result.ascx 3
And
C:\CMyProject\Results\Result.ascx(3): Build (web): Could not load file or assembly 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
The dll is in the bin and it is not in the GAC. The .refresh file is pointing to the correct location. And all sections in the Web.Config are there, if you need to see them let me know.
I have gone over the fixes I found online and nothing seems to help. I would really appreciate if someone could help me or point me in the right direction?
Thank You.
Try to install Microsoft Chart Controls for Microsoft .NET Framework 3.5. You can find it on http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&DisplayLang=en
That is the charting control, you probably need to get the latest that works with .net 4.0
Some information about it is at:
http://msdn.microsoft.com/en-us/library/ee410579(VS.100).aspx

Resources