Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot find KeycodeV2.dll, or invalid keycode.

Status
Not open for further replies.

jensies

Programmer
Aug 5, 2002
10
GB
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=&quot;GridLayout&quot;>
Line 13: <form id=&quot;Form1&quot; method=&quot;post&quot; runat=&quot;server&quot;>
Line 14: <CR:CrystalReportViewer id=CrystalReportViewer1 style=&quot;Z-INDEX: 101; LEFT: 77px; POSITION: absolute; TOP: 163px&quot; runat=&quot;server&quot; Width=&quot;1004px&quot; Height=&quot;1155px&quot; ReportSource='<%# &quot;C:\\kdms32\\source\\audit\\art\\WindowsApplication1\\userActivity.rpt&quot; %>' SelectionFormula=&quot;{?userId}={userEvents.userId} and&#13;&#10;{mObjectTypeLookup.objectType}={userEvents.objectType} and&#13;&#10;{userEvents.eventdate}>={?startDate} and&#13;&#10;{userEvents.eventdate}<={?endDate}&quot;>
Line 15: </CR:CrystalReportViewer>
Line 16: </form>


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top