日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程语言 > C# >内容正文

C#

【C#】System.MissingMethodException:Method not found: 'xxx.get_xxx()'

發(fā)布時間:2023/12/15 C# 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【C#】System.MissingMethodException:Method not found: 'xxx.get_xxx()' 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

問題

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)

?

分析

安裝新軟件后,打印機(jī)無法打印,查看日志才發(fā)現(xiàn)這個問題

由于PrinterName屬性,會自動生成get_PrinterName()方法,怎么會找不到呢,難道生成出錯?

由于這是通過軟件安裝的,可能出現(xiàn)的原因就是安裝過程出錯

?

解決

重新安裝軟件,就正常了

?

相關(guān)

我看網(wǎng)上網(wǎng)友的問題,是引用的DLL沒有更新,需要更新

另一種說法,項(xiàng)目引用的DLL版本不對導(dǎo)致

總結(jié)

以上是生活随笔為你收集整理的【C#】System.MissingMethodException:Method not found: 'xxx.get_xxx()'的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。