如何解决Xaml Parse异常?

时间:2016-08-15 07:21:49

标签: c# wpf xaml xamlparseexception

我从git下载了 Wox启动器项目 在App.Xaml中获取 XamlParseException 和其他信息:'设置属性' System.Windows.ResourceDictionary.Source '提出了一个例外线号码' 9'和行位置' 18' ..

是因为处理器不同吗? App.Xaml文件中的代码是

<Application x:Class="Wox.App"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         ShutdownMode="OnMainWindowClose"
         Startup="OnStartup">
  <Application.Resources>
    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/Themes/Dark.xaml" />
        <ResourceDictionary Source="pack://application:,,,/Languages/en.xaml" />
      </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
  </Application.Resources>
</Application>

enter image description here的InnerException:        的HResult = -2147024893        消息=无法找到路径的一部分&#39; D:\ Themes \ Dark.xaml&#39;。        来源= mscorlib程序        堆栈跟踪:             在System.IO .__ Error.WinIOError(Int32 errorCode,String maybeFullPath)             at System.IO.FileStream.Init(String path,FileMode mode,FileAccess access,Int32 rights,Boolean useRights,FileShare share,Int32 bufferSize,FileOptions options,SECURITY_ATTRIBUTES secAttrs,String msgPath,Boolean bFromProxy,Boolean useLongPath,Boolean checkHost)             在System.IO.FileStream..ctor(字符串路径,FileMode模式,FileAccess访问,FileShare共享)             在System.IO.File.Open(字符串路径,FileMode模式,FileAccess访问,FileShare共享)             在MS.Internal.AppModel.ContentFilePart.CriticalOpenFile(String filename)             在MS.Internal.AppModel.ContentFilePart.GetStreamCore(FileMode模式,FileAccess访问)             在System.IO.Packaging.PackagePart.GetStream(FileMode模式,FileAccess访问)             在System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()             在System.IO.Packaging.PackWebResponse.GetResponseStream()             在System.IO.Packaging.PackWebResponse.get_ContentType()             在MS.Internal.WpfWebRequestHelper.GetContentType(WebResponse响应)             在MS.Internal.WpfWebRequestHelper.GetResponseStream(WebRequest请求,ContentType&amp; contentType)             在System.Windows.ResourceDictionary.set_Source(Uri值)             在System.Windows.Baml2006.WpfSharedBamlSchemaContext。&lt;&gt; c.b__342_0(对象目标,对象值)             在System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(对象实例,对象值)             在MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember成员,对象obj,对象值)             在MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst,XamlMember属性,Object value)         InnerException:

0 个答案:

没有答案