【C#】System.MissingMethodException:Method not found: 'xxx.get_xxx()'
生活随笔
收集整理的這篇文章主要介紹了
【C#】System.MissingMethodException:Method not found: 'xxx.get_xxx()'
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題
System.MissingMethodException: Method not found: 'System.String Unit.PrintManager.get_PrinterName()'.at IHCUserForms.FrmBarcodePrintManage.FrmBarcodePrintManage_Load(Object sender, EventArgs e)at System.Windows.Forms.Form.OnLoad(EventArgs e)at System.Windows.Forms.Form.OnCreateControl()at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)at System.Windows.Forms.Control.CreateControl()at System.Windows.Forms.Control.WmShowWindow(Message& m)at System.Windows.Forms.Control.WndProc(Message& m)at System.Windows.Forms.ScrollableControl.WndProc(Message& m)at System.Windows.Forms.Form.WmShowWindow(Message& m)at System.Windows.Forms.Form.WndProc(Message& m)at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)?
分析
安裝新軟件后,打印機無法打印,查看日志才發現這個問題
由于PrinterName屬性,會自動生成get_PrinterName()方法,怎么會找不到呢,難道生成出錯?
由于這是通過軟件安裝的,可能出現的原因就是安裝過程出錯
?
解決
重新安裝軟件,就正常了
?
相關
我看網上網友的問題,是引用的DLL沒有更新,需要更新
另一種說法,項目引用的DLL版本不對導致
總結
以上是生活随笔為你收集整理的【C#】System.MissingMethodException:Method not found: 'xxx.get_xxx()'的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java查询ftp路径下所有文件名字
- 下一篇: abcd\110的字节数、字符长度以及字