Lawjml
asked on
Error in Crystal Report
Hello everyone
I am new to Crystal Reporting. I am currently working on a project which will take existing crystal reports and display them on the web using ASP.NET. I created an ASP.NET page using visual studio 2003 and binded the report to that page. The reports works on the machine that I created on; However it does not work on the client machine. I received the following error:
File or assembly name CrystalDecisions.Web, or one of its dependencies, was not found.
Line 4: <%@ Register TagPrefix="cr" Namespace="CrystalDecision s.Web" Assembly="CrystalDecisions .Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304" %>
I found an article on microft which states to deploy web application with crystal reports I need to merge modules.
I created a web config file with the following information
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<system.web>
<authorization>
<allow users="?" />
</authorization>
<compilation>
<assemblies>
<add assembly="CrystalDecisions .CrystalRe ports.Engi ne, Version=9.1.3300.0, culture=neutral, PublicKeyToken=692fbea5521 e1304"/>
<add assembly="CrystalDecisions .Shared, Version=9.1.3300.0, culture=neutral, PublicKeyToken=692fbea5521 e1304"/>
<add assembly="CrystalDecisions .ReportSou rce, Version=9.1.3300.0, culture=neutral, PublicKeyToken=692fbea5521 e1304"/>
<add assembly="CrystalDecisions .Web, Version=9.1.3300.0, culture=neutral, PublicKeyToken=692fbea5521 e1304"/>
</assemblies>
</compilation>
</system.web>
</configuration>
Code:
<%@ Page Language="vb" Debug="true" %>
<%@ Import Namespace="System.IO" %>
<%@ import Namespace="System" %>
<%@ import Namespace="CrystalDecision s.CrystalR eport.Engi ne" %>
<%@ import Namespace="CrystalDecision s.Shared" %>
<%@ import Namespace="CrystalDecision s.Web" %>
<%@ Register TagPrefix="cr" Namespace="CrystalDecision s.Web" Assembly="CrystalDecisions .Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304" %>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
CrystalReportViewer1.Repor tSource = Server.MapPath("Reports\Ti cket History by Ticket Number.rpt")
End Sub
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
</HEAD>
<body MS_POSITIONING="GridLayout ">
<form id="Form1" method="post" runat="server">
<CR:CrystalReportViewer id="CrystalReportViewer1" style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 24px"
runat="server" Width="350px" Height="50px" DisplayToolbar="False" SeparatePages="False"></CR :CrystalRe portViewer >
</form>
</body>
</HTML>
Question:
In order to run this code on the client's server is it necessary to install the modules? Am I required to install dll's to run the asp.net page? IF so, what dll's do I need and where can I find supporting doucment to give to the client? Is there anything wrong with my code with will prevent it from displaying?
Thanks for your help. Sorry for the long messge.
I am new to Crystal Reporting. I am currently working on a project which will take existing crystal reports and display them on the web using ASP.NET. I created an ASP.NET page using visual studio 2003 and binded the report to that page. The reports works on the machine that I created on; However it does not work on the client machine. I received the following error:
File or assembly name CrystalDecisions.Web, or one of its dependencies, was not found.
Line 4: <%@ Register TagPrefix="cr" Namespace="CrystalDecision
I found an article on microft which states to deploy web application with crystal reports I need to merge modules.
I created a web config file with the following information
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<system.web>
<authorization>
<allow users="?" />
</authorization>
<compilation>
<assemblies>
<add assembly="CrystalDecisions
<add assembly="CrystalDecisions
<add assembly="CrystalDecisions
<add assembly="CrystalDecisions
</assemblies>
</compilation>
</system.web>
</configuration>
Code:
<%@ Page Language="vb" Debug="true" %>
<%@ Import Namespace="System.IO" %>
<%@ import Namespace="System" %>
<%@ import Namespace="CrystalDecision
<%@ import Namespace="CrystalDecision
<%@ import Namespace="CrystalDecision
<%@ Register TagPrefix="cr" Namespace="CrystalDecision
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
CrystalReportViewer1.Repor
End Sub
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
</HEAD>
<body MS_POSITIONING="GridLayout
<form id="Form1" method="post" runat="server">
<CR:CrystalReportViewer id="CrystalReportViewer1" style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 24px"
runat="server" Width="350px" Height="50px" DisplayToolbar="False" SeparatePages="False"></CR
</form>
</body>
</HTML>
Question:
In order to run this code on the client's server is it necessary to install the modules? Am I required to install dll's to run the asp.net page? IF so, what dll's do I need and where can I find supporting doucment to give to the client? Is there anything wrong with my code with will prevent it from displaying?
Thanks for your help. Sorry for the long messge.
Did you get the DEVELOPER edition of CR?
mlmcc
mlmcc
Visual Studio 2003 requieres Assembly="CrystalDecisions .Web, Version=9.1.5000.0", and you have 9.1.3300.0 in web.config, from VS 2002.
Check support.crystaldecisions.c om - they had couple of articles in knowledge base about using VS 2003.
http://support.crystaldecisions.com/library/kbase/articles/c2013149.asp
http://support.crystaldecisions.com/library/kbase/articles/c2013621.asp
HTH,
Lady Linet
Check support.crystaldecisions.c
http://support.crystaldecisions.com/library/kbase/articles/c2013149.asp
http://support.crystaldecisions.com/library/kbase/articles/c2013621.asp
HTH,
Lady Linet
ASKER
Hi Everyone
Thank you for your response. I am still having the same issue. I went to crystaldecisions.com and download a pdf on deploying an asp.net applicaition and I download the crystal report modules. I followed the instructions for deploying crystal reports 9 full version with vs 2002. I build the project and installed it on the client machine because I thought that perhaps the client needed to install the components to run crystal reports.
After I installed everything, I received the same error:
Line 4: <%@ Register TagPrefix="cr" Namespace="CrystalDecision s.Web" Assembly="CrystalDecisions .Web, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521 e1304" %>
Now I have no clue as to what the issue is. What version of .NET Framework works with Crystal 9. The client is using an older version of Framework, not the latest. I don't know if this is the issue as to why it does not display in the client web browers
The software the client has
window 2000 server
.Net Framework vesion 1.0
ms visual studio 2002
Crystal 9 [full version]
Thank you for your response. I am still having the same issue. I went to crystaldecisions.com and download a pdf on deploying an asp.net applicaition and I download the crystal report modules. I followed the instructions for deploying crystal reports 9 full version with vs 2002. I build the project and installed it on the client machine because I thought that perhaps the client needed to install the components to run crystal reports.
After I installed everything, I received the same error:
Line 4: <%@ Register TagPrefix="cr" Namespace="CrystalDecision
Now I have no clue as to what the issue is. What version of .NET Framework works with Crystal 9. The client is using an older version of Framework, not the latest. I don't know if this is the issue as to why it does not display in the client web browers
The software the client has
window 2000 server
.Net Framework vesion 1.0
ms visual studio 2002
Crystal 9 [full version]
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Currently the company has the regular edition of version 9 and the Enterprise Edition. When I was creating the modules to deploy I was missing dotnetcrystalreports.msm. Does that come with the Developer Edition. Is there any other way to dispaly Crystal Reports without deploying an application to run it on the client server?
Thank you for your time.
JL
Thank you for your time.
JL
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Merge modules
http://support.crystaldecisions.com/library/kbase/articles/c2011841.asp
On this kink are some inexpensive CRviewers that might solve your deployment probems
http://www.kenhamady.com/bookmarks.html
mlmcc
http://support.crystaldecisions.com/library/kbase/articles/c2011841.asp
On this kink are some inexpensive CRviewers that might solve your deployment probems
http://www.kenhamady.com/bookmarks.html
mlmcc
mlmcc