System.Windows.Markup.XamlParseException - 未实现方法或操作

时间:2014-09-18 03:36:21

标签: c# dll xamlparseexception

首先,使用Windows 7,x86构建在64位机器VS2010上。

在运行我们的CS gui代码时,我们遇到了以下问题:

A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll

Additional information: The method or operation is not implemented.

我已经做了很多搜索,并且无法找到任何有这个"附加信息"问题。这就是我所拥有的所有信息:

  • 该项目似乎永远无法实现我们的任何代码。断点永远不会被击中。
  • 调用堆栈(我将在下面粘贴)似乎证实了这一点。它几乎就像是在启动时破坏了。
  • 问题不在我们的代码中。我们团队的一名成员有GUI工作 - 我们不知道她的计算机上的配置有何不同。

我们都很难过。我想告诉大家我能提供的任何帮助我们的信息 - 但我仍然坚持甚至不知道什么可以帮助你帮助我。如果有人知道如何诊断这个问题 - 或者可以解释这种行为并有解决方案,我们很乐意知道。

调用下面粘贴的堆栈:

>   PresentationFramework.dll!System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader xamlReader, System.Xaml.IXamlObjectWriterFactory writerFactory, bool skipJournaledProperties, object rootObject, System.Xaml.XamlObjectWriterSettings settings, System.Uri baseUri) + 0x170 bytes 
PresentationFramework.dll!System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader xamlReader, bool skipJournaledProperties, object rootObject, System.Xaml.Permissions.XamlAccessLevel accessLevel, System.Uri baseUri) + 0x40 bytes    
PresentationFramework.dll!System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream stream, System.Windows.Markup.ParserContext parserContext, object parent, bool closeStream) + 0x20b bytes  
PresentationFramework.dll!System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream stream, System.Windows.Markup.ParserContext pc) + 0xad bytes   
PresentationFramework.dll!System.Windows.Application.LoadComponent(System.Uri resourceLocator, bool bSkipJournaledProperties) + 0xed bytes  
PresentationFramework.dll!System.Windows.Application.DoStartup() + 0xa8 bytes   
PresentationFramework.dll!System.Windows.Application..ctor.AnonymousMethod__1(object unused) + 0x39 bytes   
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) + 0x52 bytes 
WindowsBase.dll!MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(object source, System.Delegate method, object args, int numArgs, System.Delegate catchHandler) + 0x3a bytes    
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl() + 0xac bytes  
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(object state) + 0x38 bytes 
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) + 0xa7 bytes  
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) + 0x16 bytes  
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x41 bytes    
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.Invoke() + 0x5b bytes  
WindowsBase.dll!System.Windows.Threading.Dispatcher.ProcessQueue() + 0x16b bytes    
WindowsBase.dll!System.Windows.Threading.Dispatcher.WndProcHook(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x5a bytes 
WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x9b bytes    
WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) + 0x6b bytes    
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) + 0x52 bytes 
WindowsBase.dll!MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(object source, System.Delegate method, object args, int numArgs, System.Delegate catchHandler) + 0x3a bytes    
WindowsBase.dll!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) + 0x10e bytes 
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) + 0xf1 bytes 
user32.dll!74e662fa()   
[Frames below may be incorrect and/or missing, no symbols loaded for user32.dll]    
user32.dll!74e66d3a()   
user32.dll!74e66ce9()   
user32.dll!74e677c4()   
user32.dll!74e6788a()   
[Managed to Native Transition]  
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame) + 0xb1 bytes  
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame frame) + 0x49 bytes  
WindowsBase.dll!System.Windows.Threading.Dispatcher.Run() + 0x4b bytes  
PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) + 0x17 bytes  
PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) + 0x6f bytes 
PresentationFramework.dll!System.Windows.Application.Run(System.Windows.Window window) + 0x26 bytes 
PresentationFramework.dll!System.Windows.Application.Run() + 0x1b bytes 
FBE_CSharpUI.exe!FBE_CSharpUI.App.Main() + 0x59 bytes   C#
mscoreei.dll!6154f4f3()     
KernelBase.dll!751c1e59()   
mscoree.dll!66ab7efd()  
mscoree.dll!66ab7f16()  
mscoree.dll!66ab4de3()  
kernel32.dll!7505338a()     
ntdll.dll!772b9f72()    
ntdll.dll!772b9f45()    

编辑:这是内部异常:

-       InnerException  {"The method or operation is not implemented."} System.Exception {System.NotImplementedException}
+       [System.NotImplementedException]    {"The method or operation is not implemented."} System.NotImplementedException
        _className  null    string
        _data   null    System.Collections.IDictionary
        _dynamicMethods null    object
        _exceptionMethod    null    System.Reflection.MethodBase
        _exceptionMethodString  null    string
        _helpURL    null    string
        _HResult    -2147467263 int
+       _innerException null    System.Exception
+       _ipForWatsonBuckets 1571861614  System.UIntPtr
        _message    "The method or operation is not implemented."   string
        _remoteStackIndex   0   int
        _remoteStackTraceString null    string
+       _safeSerializationManager   {System.Runtime.Serialization.SafeSerializationManager} System.Runtime.Serialization.SafeSerializationManager
        _source null    string
+       _stackTrace {sbyte[192]}    object {sbyte[]}
        _stackTraceString   null    string
        _watsonBuckets  null    object
        _xcode  -532462766  int
+       _xptrs  0   System.IntPtr
+       Data    {System.Collections.ListDictionaryInternal} System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
        HelpLink    null    string
        HResult -2147467263 int
+       InnerException  null    System.Exception
+       IPForWatsonBuckets  1571861614  System.UIntPtr
        IsTransient false   bool
        Message "The method or operation is not implemented."   string
        RemoteStackTrace    null    string
        Source  "PresentationFramework" string
        StackTrace  "   at System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlType(BamlType bamlType, Int16 typeId)\r\n   at System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType(Int16 typeId)\r\n   at System.Windows.Baml2006.Baml2006Reader.Process_ElementStart()\r\n   at System.Windows.Baml2006.Baml2006Reader.Process_OneBamlRecord()\r\n   at System.Windows.Baml2006.Baml2006Reader.Process_BamlRecords()\r\n   at System.Windows.Baml2006.Baml2006Reader.Read()\r\n   at System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector)\r\n   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)"  string
+       TargetSite  {System.Xaml.XamlType ResolveBamlType(BamlType, Int16)} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}
        WatsonBuckets   null    object
+       Static members      

0 个答案:

没有答案