2017-10-13 142 views
-4

我有建於C#.NET超過4.5框架的客戶機 - 服務器應用程序運行的C#應用​​程序的發佈版本。我無法在其他計算機上運行服務器端。我用.net更新過不同的電腦。奇怪的是,客戶端工作沒有任何問題。有人能幫我嗎?我不能在其他計算機上

Informações噠Excepção:System.IO.DirectoryNotFoundException EM System.IO .__ Error.WinIOError(的Int32,System.String) EM System.IO.FileStream.Init(System.String,System.IO.FileMode,系統.IO.FileAccess,的Int32,布爾值,System.IO.FileShare,的Int32,System.IO.FileOptions,SECURITY_ATTRIBUTES,System.String,布爾值,布爾,布爾值) EM System.IO.FileStream..ctor(System.String, System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) EM System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(的System.Uri,System.IO.Stream,System.Windows.Media.Imaging。 BitmapCacheOption,的System.Guid的ByRef,布爾的ByRef,System.IO.Stream的ByRef,System.IO.UnmanagedMemoryStream的ByRef,Microsoft.Win32.SafeHandles.SafeFileHandle的ByRef) EM System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(的System.Uri,的System.Uri,System.IO.Stream,System.Windows.Media.Imaging.BitmapCreateOptions,System.Windows.Media.Imaging.BitmapCacheOption,系統。 Net.Cache.RequestCachePolicy,Boolean) em System.Windows.Media.Imaging.BitmapImage.FinalizeCreation() em System.Windows.Media.Imaging.BitmapImage.EndInit() em System.Windows.Media.Imaging.BitmapImage。 .ctor(的System.Uri,System.Net.Cache.RequestCachePolicy) EM Server2UI.MainWindow..ctor()

Informações達Excepção:System.Windows.Markup.XamlParseException

+0

當您嘗試運行它時會發生什麼?你有沒有收到任何錯誤信息? –

+4

不要讓我們猜測你的電腦上發生了什麼,我們不介意讀者和(*我們大多數人*)不爲NSA工作。始終提供預期的結果和實際結果。在Exception的情況下提供所有的細節(類型,消息,堆棧軌跡,以及對於任何內部異常遞歸)。看到[問]一個很好的問題,並總是嘗試包括[mcve]。 – Igor

+0

@AlexTelon我得到了錯誤信息「應用程序已停止工作」,在一臺電腦,但我沒有得到我所測試的其他計算機上的任何錯誤 - 相反,沒有任何反應。 –

回答

2

看異常的名字類型a找到從底部開始的堆棧跟蹤。在我看來(,請記住我對源代碼沒有任何意見),即從WPF表單上的磁盤加載的映像未包含在應用程序目錄中(或有關 )。

相關問題