2013-06-19 37 views
7

當我在我的WPF應用程序上運行Snoop時,我的應用程序崩潰,並且出現「BindingFailure被檢測到」錯誤。錯誤的細節:當我們嘗試將它附加到我們的應用程序時,爲什麼Snoop會造成WPF崩潰?

The assembly with display name 'Snoop.XmlSerializers' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'Snoop.XmlSerializers, Version=2.8.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

有沒有人遇到過這個問題嗎?我不知道是什麼原因造成的。

+3

您必須在Visual Studio中的「Debug - > Exceptions」對話框中檢查所有'exceptions'。取消所有「拋出」列 –

+0

是的,就是這樣。謝謝。 –

+0

如果它對你有用,請不要忘記標記我的答案爲已接受。 –

回答

12

轉換我的評論到一個答案:

必須選中了在Visual Studio中的Debug -> Exceptions對話框中的所有異常。取消選中所有「拋出」列

+0

我曾經想過這件事......然後今天又發生了......我一直在絞盡腦汁,直到遇到這條線索。謝天謝地。 – NielW

+0

上帝......我不能告訴你*我已經處理了多少次,結果證明它只是一個簡單的複選框?!!在這裏,我認爲我們正在做的事情如此惡劣,在我們的代碼中無法察覺,我們正在崩潰snoop!但是...問題...有沒有辦法離開檢查,但忽略探聽大會?在我們的例子中,因爲我們運行全局處理程序,所以我們必須使用該複選框來進行適當的調試。當然,通常不是當我們需要偵聽時,但是不必總是不斷地將它打開和關閉。 – MarqueIV

相關問題