2016-12-22 257 views
0

我使用Visual Studio installshield創建安裝程序並將其發送到服務器。當我嘗試在服務器上運行應用程序時,出現以下Microsoft窗口消息:我的安裝程序因異常而崩潰:0xE0434352

{「Myapplication has stopped working」
一個問題導致程序無法正常工作。 Windows將關閉程序並通知您是否有解決方案「}

當我單擊調試按鈕時。 我得到以下異常: [有發生Myapplication.exe [未處理的win32異常6620]

當我點擊調試使用選定的調試器,它是Visual Studio的新實例2008 微軟的Visual Studio扔以下例外情況: [Myapplication.exe中的0x76effd1e未處理的異常:0xE0434352:0xe0434352]

有人可以幫忙嗎?我不知道這個異常和錯誤的含義是什麼。

+0

'0xE0434352'是低級別CLR異常的代碼。如果不是完全不可能的話,對這個進行心理調試將會非常困難。 –

+0

您是否使用任何自定義操作? – Shahzad

+0

你應該澄清這個問題。你的主題說「安裝程序停止工作」,但你的文章似乎是關於安裝的應用程序崩潰。 – PhilDW

回答

0

我發現資源的在這裏解決這個例外@計算器,通過@kynrek的建議或@kynrek改寫,

通過這裏所描述@

增加對「AppDomain.CurrentDomain.UnhandledException處理程序http://msdn.microsoft.com/en-us/library/system.appdomain.unhandledexception

@kynrek應該有這個答案的功勞。

 Public Class Form1 
     Dim currentDomain As AppDomain = AppDomain.CurrentDomain 
     AddHandler currentDomain.UnhandledException, AddressOf MyHandler 
     Try 

     Catch ex As Exception 
      ErrMsgTextBox1.Text = (ex.Message) 
     End Try 

    Private Sub MyHandler(sender As Object, args As UnhandledExceptionEventArgs) 
     Dim e As Exception = DirectCast(args.ExceptionObject, Exception) 
     ErrMsgTextBox1.Text = (e.Message) 
    End Sub 'MyUnhandledExceptionEventHandler 
End Class 
相關問題