【发布时间】:2014-09-18 13:58:41
【问题描述】:
我们在虚拟服务器上安装了全新的 windows 7 pro,并安装了 Microsoft Office。然后我们安装了我们的小应用程序。我在我们制作的第二台虚拟机上,但同样的问题仍然存在。运行我们得到的应用程序时:
Application: ------.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Windows.Markup.XamlParseException
Stack:
at System.Windows.Markup.XamlReader.RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)
at System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
at System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
at System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream, System.Windows.Markup.ParserContext)
at System.Windows.Application.LoadComponent(System.Uri, Boolean)
at System.Windows.Application.DoStartup()
但是,8 个用户中的 2 个用户不会发生该错误。这不是代码问题,因为应用程序位于 1 台计算机上,并且每个人都通过远程桌面连接到该计算机以运行该应用程序。我们一次只能有 1 个远程会话。远程会话用户是域用户,他们是机器上本地管理员组的一部分。所以我们想知道哪个权利可能会阻止 XAML 加载器?
我要补充一点,该文件没有在网络上运行,它完全是本地的c:\program files (x86)\mysoftware\software.exe。也不是驱动器的网络重定向。
【问题讨论】:
-
任何内部
Exception? -
我不知道。它发生在我的第一个窗口甚至出现之前。不可能尝试捕获。我只能在 Windows 事件日志中看到它。
-
澄清加载
app.xaml时发生的错误并且不会触发StartupUri