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 strongm 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 key in .NET Environment

Status
Not open for further replies.

jayaram4urs

Programmer
Dec 17, 2005
12
US
I installed CRXI R2,I tried to open the report in .NET environment. I got an error message as "Cannot find keycodev2.dll or invalid keycode"

I tried as per the link "Still the same .NET code is working fine in other systems(CRXI R2 not installed)

The following is a .NET code to display the report.


1)Create a new c# windows application.

2)Include a Button, CrystalReportViewer, OpenFileDialog Objects from the toolbox to the form.

3)On the Button click event write the following code the display the report.

OpenFileDialog dlg = new OpenFileDialog();

dlg.Title = "Select Crystal Reports file";

dlg.Filter = "Crystal Reports (*.rpt)|*.rpt|All Files (*.*)|*.*";

dlg.InitialDirectory = "C:\\XML files";

if (dlg.ShowDialog() == DialogResult.OK)

{

this.Cursor = Cursors.WaitCursor;

crystalReportViewer.ReportSource = dlg.FileName;

this.Cursor = Cursors.Default;

}



Thanks in Advance

Jayaram
 
I see a lot of Crystal Reports go by without much support here - perhaps it might be a good idea to start a "Crystal Reports" forum -- where people who are everyday involved with this package can go for more detailed analysis of their problems (just a thought).
 
jayaram4urs
I can;t really tell you with certainty that the above code has something to do with error. But make sure you specify the The License Key number in the License Key property of the REGWIZ.MSM merge module when your are creating the deployment package. I this think should take care your problem. Make sure you are using the merge modules compatible with your ASP.net Version
I hope this will help
Bensta
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top