473,394 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Crystal report viewer not works in server

Hi friends,
I am using Crystal report and view it through Crystalreportviewer control in asp.net.it works well with local host but when i deploy on web server i get the following error
"The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) "
I cant trace it out.I dont know what file is missing?
what to do? Can anyone help please?

Sudha
May 9 '07 #1
8 15429
dip_developer
648 Expert 512MB
Hi friends,
I am using Crystal report and view it through Crystalreportviewer control in asp.net.it works well with local host but when i deploy on web server i get the following error
I cant trace it out.I dont know what file is missing?
what to do? Can anyone help please?

Sudha

Please check whether you have added reference of all the assemblies needed for crystal report like
Expand|Select|Wrap|Line Numbers
  1. CrystalDecision.Shared
  2. CrystalDecision.ReportSource
  3. CrystalDecision.CrystalReport.Engine
  4. etc....etc...
May 9 '07 #2
kenobewan
4,871 Expert 4TB
Have you checked whether crystal is installed on the server?
May 9 '07 #3
Have you checked whether crystal is installed on the server?
Hi kenobewan,
Crystal is installed in Server too. Many times i get different kinds of errors with reports. Now i get runtime error in server like this

Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->
Expand|Select|Wrap|Line Numbers
  1. <configuration>
  2.     <system.web>
  3.         <customErrors mode="Off"/>
  4.     </system.web>
  5. </configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->
Expand|Select|Wrap|Line Numbers
  1. <configuration>
  2.     <system.web>
  3.         <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
  4.     </system.web>
  5. </configuration>
------------------------------------------------
with regards,
sudha
May 10 '07 #4
kenobewan
4,871 Expert 4TB
Then i would try checking your references, always reference crystal before using it. HTH.
May 10 '07 #5
Motoma
3,237 Expert 2GB
You may be having a version error. Check that the Crystal Report DLLs are the same between your server and your test box.
May 10 '07 #6
Hi Kenobewan,

I reinstalled crystalredhist_X86.msi on server and Once again deployed my project on server and now its working fine. Thanks for dip_developer and Motoma too. Why the reportViewer's toolbar doesn't show export or print icons as well as these functions are not working in web server. Do we need to get license from Business Objects for this report viewing even within intranet applications?

sudha
May 11 '07 #7
Better you try to convert into pdf by adding the following codings.

Add this code below to your code for crystal report viewer loading.
Expand|Select|Wrap|Line Numbers
  1. Dim stream As New MemoryStream
  2. stream=Report.exporttostream(exportformattype.portabledocformat)
  3. Response.Clear()
  4. Response.Buffer=true
  5. Response.ContentType="application/pdf"
  6. Response.BinaryWrite(stream.toarray)
  7. Response.End()
here Report is what you declared for report loading
Ex: Report.load(server.mappath("CrystalReport1.rpt"))

You please visit the fiollowing url too
http://www.thescripts.com/forum/thread644552.html
May 12 '07 #8
Hi Sudha, To Make all image buttons visible on crystal report simply do the following.

Copy all item in this folder:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP. NETClientFiles\CrystalReportWebFormViewer4
To
C:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50 727\CrystalReportWebFormViewer4
I hope it will solve your problem.

Pradeep
Sep 21 '11 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Ashish Shridharan | last post by:
Hi All, I'm not very sure if this is the forum for my question but i was hoping someone could direct me to the right place (or answer my question). I am using the .NET crystal report viewer...
7
by: mrwoopey | last post by:
I have a asp.net application that uses the crystal report viewer control. It displays all of my reports but all of a sudden it started giving me the following error on ONLY two reports: "Fail...
0
by: louise raisbeck | last post by:
Hi, The first part of this code def works as i have an export function which saves my crystal report, as a pdf, to disk. However they want to be able to view them before deciding to save them. I...
1
by: Harshil | last post by:
Hi All, I am working on Vb.net application with oracle as my database. I have developed reports using crystal report 9. Usually when you open reports directly in crystal report viewer control it...
2
by: zdrakec | last post by:
Hello all: I have the Crystal Report viewer imbedded on a .NET form, and it works very well... except, on the target machine, when I set the ReportSource property of the viewer (to a...
0
by: mano.bharath | last post by:
I am developing a windows application in VB.NET 2005 that includes a number of crystal reports. To use the reports I use the included crystal report viewer and pass a dataset to the report at...
0
by: John Smith | last post by:
Hello, I am developing a VB.NET 2003 application that will use lots of Crystal Reports. Sometimes the users will preview a report in a Crystal report viewer, and sometimes they will send the...
0
by: SwamyKarthik | last post by:
I am trying to build an app that reads crystal reports. I was able to load the Crystal report viewer as a ActiveX plugin however I'm having problems. Here's my code: Public Class Form1 ...
1
by: CAM | last post by:
Hello, I am using Vista Basic.Net 2008 and I wondering what is the best way to display crystal reports in a form. I have about 10 different crystal reports what I am currently doing is using a...
0
by: mohanty2050 | last post by:
I am using Crystal Report 9 and VB6.0. I can display the report through Crystal report viewer properly. But the print button in the Crystal report viewer does not work. My printer is in network. If I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.