KnowDotNet Visual Organizer

Cannot find KeyCode2.dll or Invalid Code

by Willliam Ryan
Print this Article Discuss in Forums

If you do much reporting, you probably use Crystal.  It comes bundled with Visual Studio .NET and is the world's most popular report writer.  However, when you first come over to .NET, things are a wee bit different than they used to be.  Deploying Crystal takes a couple of things (it always did) and there's one Gotcha that a lot of people have had trouble with, the licensing.

First, you need to use in Install Program or have Crystal Installed on the Client Machine.  There's no way around this!  Next, you need to include all the dependency files, and use have to add the License.msm Merge Module.  Once you added the merge module, click on the Crystal_Regwiz200x object,


expand the MergeModuleProperties and insert your key.  This is where lots of people get into trouble b/c there's some incorrect information out there.  It's a 19 digit key and it contains no spaces or hyphens.  You can get it by going to Help, select About Visual Studio .NET 2003 , selecting Crystal Reports, Pressing the Copy Info button and then pasting it.  It should look something like this:
  
However, what you'll get when you paste it will look like this ( Crystal Reports for Visual Studio .NET    XXPX0-CS00000-U70XXXX ) and it won't work out of the box.  This is probably the most common problem people have when using Crystal, so beware of it.  For a full discussion, look here.






Writing Add-Ins for Visual Studio .NET
Writing Add-ins for Visual Studio .NET
by Les Smith
Apress Publishing