Get your Crystal report working on your customers server (Cannot find KeycodeV2.dll, or invalid key

野鬼1314

野鬼1314

2016-01-29 12:47

Get your Crystal report working on your customers server (Cannot find KeycodeV2.dll, or invalid key,Get your Crystal report working on your customers server (Cannot find KeycodeV2.dll, or invalid key
Actually I do like Crystal Reports. It may not be perfect but the way it works with datasets, its grouping a selecting options and the web report viewer are very workable. Deploying Crystal Report to a web server is another story.
When you test your app on your localhost all seems to be working well but when the app is installed on the webserver it produces the notorious Cannot find KeycodeV2.dll, or invalid keycode error message. The Crystal site has loads on support on that which tells you to update some registry settings. There is a big chance that you will not find these settings. What to do next is hidden a lot better in the docs.
The crystal viewer uses a couple of dll's which are installed on your development machine. They are part of CR for VS.NET but not of the .NET framework. If there is no vs.net installed on the webserver these files will be missing on the server. A deployment project in VS.NET will not see the dependencies and will not include them in the setup. What worked for me (destilled out of the loads of CR docs) was creating a setup project with a couple of merge modulesCrystal_Database_Access2003.msm Crystal_Database_Access2003_enu.msm Crystal_Managed2003.msm Crystal_regwiz2003.msm VC_User_CRT71_RTL_X86_---.msm (used for reports based on ADO.NET) VC_User_STL71_RTL_X86_---.msm (used for reports based on ADO.NET)

The regwiz module has an License key property, here you enter the Crystal license key found in the help about of VS.NET. It will read something like AAP50-GS00000-U7000RN.
Installing this dummy app will enable CR in all your webservers applications. On one server the setup was a webapp, on another server we had to create a Windows forms setup before the server would see CR.
Blog on, Peter
展开更多 50%)
分享

猜你喜欢

Get your Crystal report working on your customers server (Cannot find KeycodeV2.dll, or invalid key

电脑网络
Get your Crystal report working on your customers server (Cannot find KeycodeV2.dll, or invalid key

follow your heart

电脑入门
follow your heart

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

No one is worth your tears in the world

电脑入门
No one is worth your tears in the world

VC# .Net中浏览Crystal Report

C语言教程 C语言函数
VC# .Net中浏览Crystal Report

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

Your Uninstaller的使用教程

电脑入门
Your Uninstaller的使用教程

iPhone"There is a problem with your device" 解决方法

iphone iPhone 5s iPhone 6 iphone刷机
iPhone

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

Flash MX 视频导入功能详解

Flash MX 视频导入功能详解

Flash MX 2004 ActionScript图文教程(一)

Flash MX 2004 ActionScript图文教程(一)
下拉加载更多内容 ↓