Hi,
I am trying to create a web page displaying a crystal report using c#. THe following code gives me the error at the end of my post: If anyone was able to help I would be really grateful!
public class WebForm1 : System.Web.UI.Page
{
protected CrystalDecisions.Web.CrystalReportViewer CrystalReportViewer1;
private void Page_Load(object sender, System.EventArgs e)
{
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
CrystalReportViewer1.DataBind();
base.OnInit(e);
}
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
Cannot find KeycodeV2.dll, or invalid keycode.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.InternalException: Cannot find KeycodeV2.dll, or invalid keycode.
Source Error:
Line 12: <body MS_POSITIONING="GridLayout">
Line 13: <form id="Form1" method="post" runat="server">
Line 14: <CR:CrystalReportViewer id=CrystalReportViewer1 style="Z-INDEX: 101; LEFT: 77px; POSITION: absolute; TOP: 163px" runat="server" Width="1004px" Height="1155px" ReportSource='<%# "C:\\kdms32\\source\\audit\\art\\WindowsApplication1\\userActivity.rpt" %>' SelectionFormula="{?userId}={userEvents.userId} and {mObjectTypeLookup.objectType}={userEvents.objectType} and {userEvents.eventdate}>={?startDate} and {userEvents.eventdate}<={?endDate}">
Line 15: </CR:CrystalReportViewer>
Line 16: </form>
I am trying to create a web page displaying a crystal report using c#. THe following code gives me the error at the end of my post: If anyone was able to help I would be really grateful!
public class WebForm1 : System.Web.UI.Page
{
protected CrystalDecisions.Web.CrystalReportViewer CrystalReportViewer1;
private void Page_Load(object sender, System.EventArgs e)
{
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
CrystalReportViewer1.DataBind();
base.OnInit(e);
}
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
Cannot find KeycodeV2.dll, or invalid keycode.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.InternalException: Cannot find KeycodeV2.dll, or invalid keycode.
Source Error:
Line 12: <body MS_POSITIONING="GridLayout">
Line 13: <form id="Form1" method="post" runat="server">
Line 14: <CR:CrystalReportViewer id=CrystalReportViewer1 style="Z-INDEX: 101; LEFT: 77px; POSITION: absolute; TOP: 163px" runat="server" Width="1004px" Height="1155px" ReportSource='<%# "C:\\kdms32\\source\\audit\\art\\WindowsApplication1\\userActivity.rpt" %>' SelectionFormula="{?userId}={userEvents.userId} and {mObjectTypeLookup.objectType}={userEvents.objectType} and {userEvents.eventdate}>={?startDate} and {userEvents.eventdate}<={?endDate}">
Line 15: </CR:CrystalReportViewer>
Line 16: </form>