toe's profile狮子-日记本子PhotosBlogLists Tools Help

Blog


    12/26/2006

    cannot find keycodev2.dll,or invalid keycode--解决VS.NET中水晶报表在WEB客户端的安装

    在VS.NET安装工程中,系统检测出来的依赖项只有dotNETFXRedist_x86_chs.msm 和Crystal_regwiz2003.msm这两个模块,因此在客户端安装完程序运行后,可能会出现cannot find keycodev2.dll,or invalid keycode这样的错误提示,导致报表无法显示。
     
    (一)问题所在:
    VS.NET环境下发布项目时水晶报表需要包含以下三种组件:

    报表(*.rpt)
    模块(*.msm)
    运行库(*.msm)

    这些模块文件是在C:\Program Files\Common Files\Merge Modules\ 目录里面
     
    1、报表(*.rpt)
    即项目创建时的报表文件。(在添加项目输出的主输出和内容文件时以包含在内)
     
    2、模块(*.msm)

    Crystal_Managed2003.msm
    该模块包含了CR for VS .NET的管理模块,如
    CrystalDecisions、CrystalReports.Engine.DLL、CrystalDecisions.Web.DLL, 和CrystalDecisions.Windows.Forms.DLL.……

    Crystal_Managed2003_chs.msm是该模块的中文版语言支持。

    Crystal_Database_Access2003.msm
    该模块包含了数据库的驱动、与不同数据库的联结、报表导出为RTF 和 HTML格式的文档和图表组件。

    Crystal_Database_Access2003_chs.msm 是此模块的中文版语言支持。

    Crystal_regwiz2003.msm
    注册信息模块
     
    3、 ..运行库(*.msm)

    如果报表文件使用了ADO.NET的dataset数据集对象,那么VC_User_CRT71_RTL_X86_---.msm和VC_User_STL71_RTL_X86_---.msm模块也必须包含在安装工程中。
     
    (二)解决方案

    1、在解决方案资源管理器里,右键单击安装项目选择"添加"-〉"合并模块(M)",如图所示。

    2、在"添加模块"对话窗体,选择 C:\Program Files\Common Files\Merge Modules\ 目录下面的Crystal_Managed2003.msm
    、Crystal_Managed2003_chs.msm、Crystal_Database_Access2003.msm, Crystal_Database_Access2003_chs.msm, Crystal_regwiz2003.msm、VC_User_CRT71_RTL_X86_---.msm和VC_User_STL71_RTL_X86_---.msm模块

    3、合并模块完成后,单击Crystal_regwiz2003.msm选择"属性",在(MergeModuleProperties)属性下的License Key处输入水

    晶报表的注册码(此步跳过可能导致编译出错)

    4、重新生成,OK,完成。

     

    Comments (5)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Snowwrote:
    汗,啥时候这么技术了。水晶报表不是可以直接使用吗?不过我们不用那东东。有空别光约会,五一旅游去。
    Feb. 25
    Niuniu Wenwrote:
    dont quite understand what your blogg mean...
    come here to see you anyway
    Jan. 19
    Anniewrote:
    我这里下雪了。
    Jan. 17
    wrote:
    照片是谁? 好pp~~~~~~
    我回来咯,只是前段时间把空间给删除又重建.
    Dec. 28
    一琛 沈wrote:
    不懂的说
    不过你GF真的好漂亮啊~~~
    Dec. 26

    Trackbacks

    Weblogs that reference this entry
    • None