iT邦幫忙

1

應用程式發生未處理的例外狀況 然後網頁開啟會顯示不正常的惡意廣告 求助~

  • 分享至 

  • xImage

如需叫用 Just-In-Time (JIT) 偵錯的詳細資料,
請參閱本訊息結尾處 (而非這個對話方塊) 的資訊。

************** 例外狀況文字 **************
System.FormatException: 輸入字串格式不正確。
於 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
於 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
於 COMMON.Cini.GetiniNumber(String strSection, String strKey, Int32 nSize)
於 Patcher.PatcherCheckProcess.LastVersionCheck()
於 Patcher.PatcherCheckProcess.Update()
於 Patcher.MainFrame.TimerUpdate(Object sender, EventArgs e)
於 System.Windows.Forms.Timer.OnTick(EventArgs e)
於 System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
於 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** 已載入的組件 **************
mscorlib
組件版本: 4.0.0.0
Win32 版本: 4.8.4515.0 built by: NET48REL1LAST_C
程式碼庫: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

SFPatcher
組件版本: 1.0.0.0
Win32 版本: 1.0.0.0
程式碼庫: file:///D:/SF/Special%20Force/SFPatcher.exe

System.Windows.Forms
組件版本: 4.0.0.0
Win32 版本: 4.8.4515.0 built by: NET48REL1LAST_C
程式碼庫: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
組件版本: 4.0.0.0
Win32 版本: 4.8.4536.0 built by: NET48REL1LAST_C
程式碼庫: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
組件版本: 4.0.0.0
Win32 版本: 4.8.4390.0 built by: NET48REL1LAST_C
程式碼庫: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Core
組件版本: 4.0.0.0
Win32 版本: 4.8.4536.0 built by: NET48REL1LAST_C
程式碼庫: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Configuration
組件版本: 4.0.0.0
Win32 版本: 4.8.4190.0 built by: NET48REL1LAST_B
程式碼庫: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
組件版本: 4.0.0.0
Win32 版本: 4.8.4084.0 built by: NET48REL1
程式碼庫: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

mscorlib.resources
組件版本: 4.0.0.0
Win32 版本: 4.8.4084.0 built by: NET48REL1
程式碼庫: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hant_b77a5c561934e089/mscorlib.resources.dll

System.Windows.Forms.resources
組件版本: 4.0.0.0
Win32 版本: 4.8.4084.0 built by: NET48REL1
程式碼庫: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hant_b77a5c561934e089/System.Windows.Forms.resources.dll

************** JIT 偵錯 **************
若要啟用 Just-In-Time (JIT) 偵錯功能,則必須在
此應用程式或電腦的 .config 檔案中,設定
system.windows.forms 區段內的 jitDebugging 值。
且該應用程式也必須在啟用偵錯的狀態下進行
編譯。

例如:

當 JIT 偵錯功能啟用後,會將所有未處理的例外狀況
傳送給電腦上已註冊的 JIT 偵錯工具進行處
理,而不是使用這個對話方塊來處理。

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

2
科科
iT邦研究生 1 級 ‧ 2022-09-06 13:47:50
最佳解答

System.FormatException: 輸入字串格式不正確。
於 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

只看這個大概是你的程式碼,
有地方輸入的字串是無法轉成數字,
沒看到程式碼只能用猜的。

tumi5233 iT邦新手 5 級 ‧ 2022-09-06 17:18:08 檢舉

那請問這個情況應該如何解決呢qq

科科 iT邦研究生 1 級 ‧ 2022-09-06 19:52:37 檢舉

要看你的程式碼怎麼寫的~

我要發表回答

立即登入回答