我有一个用c#over .net 4.5框架构建的客户端 - 服务器应用程序。我无法在其他计算机上运行服务器端。我尝试使用.net更新的不同计算机。奇怪的是客户端没有任何问题。有人能帮助我吗?
InformaçõesdaExcepção:System.IO.DirectoryNotFoundException em System.IO .__ Error.WinIOError(Int32,System.String) em System.IO.FileStream.Init(System.String,System.IO.FileMode,System.IO.FileAccess,Int32,Boolean,System.IO.FileShare,Int32,System.IO.FileOptions,SECURITY_ATTRIBUTES,System.String,Boolean ,布尔值,布尔值) 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,Boolean 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,System.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çõesdaExcepção:System.Windows.Markup.XamlParseException
答案 0 :(得分:2)
从底部开始查看异常类型的名称和堆栈跟踪。向我看(并记住我对源代码一无所知),从WPF表单上找到的磁盘加载的图像未包含在应用程序的目录中( 或者那里)。