system.missingMethodException而找不到方法的Crystal Reports [英] System.MissingMethodException Method Not Found Crystal Reports
问题描述
我运行到我的客户端工作站上以下异常试图更新应用程序时:
I'm running into the following exception on my client workstation when trying to update the application:
System.MissingMethodException:
Method not found: 'Void CrystalDecisions.Windows.Forms.CrystalReportViewer.set_CachedPageNumberPerDoc(Int32)'.
at OpusRw.CrystalReports.CryRepView.InitializeComponent()
at OpusRw.CrystalReports.CryRepView..ctor() in
c:\cli_code\OPUSfin\OPUSfin\CrystalReports\CryRepView.cs:line 21
at OPUSfin.SubForms.PrintScreen.btInsertion_Click(Object sender, EventArgs e) in
c:\cli_code\OPUSfin\OPUSfin\SubForms\PrintScreen.cs:line 55
然而,当我在本地调试的代码,我也没问题。 (这些更新甚至没有改变问题的代码)。
However when I debug the code locally I have no problem. (The updates did not even alter the code in question).
我最初假设这是一个.dll文件,并试图清理解决方案,删除并重新添加.DLL也无济于事。
I initially assumed this was a .dll error and Have tried cleaning the solution, removing and re-adding the .dll's to no avail.
我可以尝试解决这个问题有什么其他的事情?
What other things can I try to resolve the issue ?
推荐答案
我在VB程序,有一个类似的问题。
与很多画面/每一个CrystalReportViewr(CRV)形成vb.net应用程序。
屏开发之前2014分之7做工精细。这些开发以后就不会加载并得到了错误:
'太虚CrystalDecisions.Windows.Forms.CrystalReportViewer.set_CachedPageNumberPerDoc(Int32)已。
液:
打开SolutionExplorer。
进入形成的问题,扩大了+号。
右键单击YourFormName.Designer.vb并选择查看代码。
在结果代码窗口滚动找到的CrystalReportViewer的名称。
注释掉行:Me.crv1.CachedPageNumberPerDoc = 10
I program in vb and had a similar issue. Have a vb.net app with many screens/forms each with a CrystalReportViewr (crv). Screens developed prior to 7/2014 work fine. Those developed after wouldn't load and got the error: 'Void CrystalDecisions.Windows.Forms.CrystalReportViewer.set_CachedPageNumberPerDoc(Int32)'. Solution: Open 'SolutionExplorer'. Go to form in question and expand the '+' sign. Right click on YourFormName.Designer.vb and choose 'View Code'. In resultant code window scroll to find the name of the CrystalReportViewer. Comment out line: "Me.crv1.CachedPageNumberPerDoc = 10".
我重新编译和更新应用程序用户的机器,它的工作
I recompiled and updated the app on user's machines and it worked.
这篇关于system.missingMethodException而找不到方法的Crystal Reports的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!