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

2016-01-29 12:47 15 1 收藏

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

【 tulaoshi.com - ASP.NET 】

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

来源:http://www.tulaoshi.com/n/20160129/1487547.html

延伸阅读
标签: 电脑入门
Don‘t waste your time on a man/woman, who isn’t willing to waste their time on you. From now on, I will expect nothing, and just take what I get. The life most of the time, commitments equals to constrain, reluctantly we yearn for bound I can't afford to bear the deep feeling is the burden, sweet prattle just hap...
标签: 电脑入门
I love your heart is not your face.我爱的是你的心不是你的脸。 How far is forever ,I dare you dare to dare not。 Do you want wait me 你愿意等我吗 A promise to be my girl.答应我做我的女孩. You are in my boold poison =你是我血液里的毒 Time that I don't read him(时光叫我别念他) Very love hurts us to each other 很...
标签: 电脑入门
        yes,           my lord.         yes,          your highness. ---------------------------------
标签: 电脑入门
Your dream is love.你的梦就是爱。 Are we just the friends? Yes, we're just friends Love is a carefully designed lie. You are the apple of my eye. (你是我的挚爱) The tears started to laugh[眼泪都笑了] You are my king、 I thought you'd always be mine 、 my love for you is deeper than the sea I do not see the d...
标签: 电脑入门
Life seemed suddenly dark without sunshine Your name, my heart.---你的名字,我的心事。 Don't cry because it is over, smile because it hap We all live in the past . I have loved you. I’m sorry ,But I Love You. I love you more than you love yourself. After all,tomorrow is another day.无论如何,明天又是新的一天。

经验教程

315

收藏

100
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部