簡體   English   中英

C#WPF應用程序在VS Debug中運行,但不能作為EXE運行

[英]C# WPF Application runs in VS Debug but not as a EXE

我有一個奇怪的問題。 我編寫了一個C#WPF應用程序,可以在Visual Studio調試中完美運行。 但是,當我在Visual Studio外部啟動EXE時(我沒有將.exe移到bin \\ Debug文件夾中),主窗口可以正確顯示並正常工作,但是如果我嘗試打開第二個窗口,則應用程序將崩潰。 我從網絡驅動器啟動.exe,但是到目前為止,它一直有效,這個問題從今天開始。 我已注釋掉我所做的所有主要更改,但仍然是相同的問題。
他將以下信息復制到Temp中:

<ParentProcessInformation>
    <ParentProcessId>3476</ParentProcessId>
    <ParentProcessPath>C:\Windows\explorer.exe</ParentProcessPath>
    <ParentProcessCmdLine>C:\Windows\Explorer.EXE</ParentProcessCmdLine>
</ParentProcessInformation>
<ProblemSignatures>
    <EventType>CLR20r3</EventType>
    <Parameter0>zimk.kalender.exe</Parameter0>
    <Parameter1>1.0.0.0</Parameter1>
    <Parameter2>53c4f986</Parameter2>
    <Parameter3>PresentationFramework</Parameter3>
    <Parameter4>3.0.0.0</Parameter4>
    <Parameter5>5167b4d1</Parameter5>
    <Parameter6>6263</Parameter6>
    <Parameter7>e1</Parameter7>
    <Parameter8>System.Windows.Markup.XamlParse</Parameter8>
</ProblemSignatures>

我從.mdmp文件獲得的信息:

異常代碼:0xE0434F4D
異常信息:異常來自CLR

好吧,我知道了。 我用Command Line Parameters ,但忘了開始的exe Parameters
對不起,我浪費了您的時間。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM