469,300 Members | 2,293 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,300 developers. It's quick & easy.

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 15071
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

Post your reply

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

Similar topics

2 posts views Thread by Ashish Shridharan | last post: by
reply views Thread by louise raisbeck | last post: by
reply views Thread by mano.bharath | last post: by
1 post views Thread by CAM | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.