Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Another BamlParseException

Closed Thread
 
Thread Tools Display Modes
Old 02-04-2006   #1 (permalink)
rl foster
Guest


 

Another BamlParseException

I have run into the following exception on the Nov, Dec, and now January CTP's:

System.Windows.Serialization.BamlParseException was unhandled
Message="Error at element 'StaticExtension' in markup file '' : Could not
load type 'System.Runtime.CompilerServices.NGenAttribute' from assembly
'mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.."
Source="PresentationFramework"
LineNumber=0
LinePosition=0
StackTrace:
at System.Windows.Serialization.BamlRecordReader.ReadRecord(BamlRecord
bamlRecord)
at System.Windows.Serialization.BamlRecordReader.Read(Boolean singleRecord)
..
..
..

Actually, this problem has stymied every install since Net 2.0 Beta1
expired. Am now running RTM VS2005 on a cleaned system( as far as I can tell
).

This occurs on any XAML app, including XAMLPad or even a blank Windows
project.

I have seen other references to this error but have not found a resolution
for it.
Any new information would be appreciated.

Thank you.
Old 02-04-2006   #2 (permalink)
Nick Kramer [MSFT]
Guest


 

Re: Another BamlParseException

Sounds like the issue described here:
http://blogs.msdn.com/nickkramer/arc...20/506180.aspx

--
-Nick Kramer [MSFT]
http://blogs.msdn.com/nickkramer

---
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"rl foster" <rlfoster@discussions.microsoft.com> wrote in message
news:6A2928E1-07B4-4744-A9A8-36531CB3C201@microsoft.com...
>I have run into the following exception on the Nov, Dec, and now January
>CTP's:
>
> System.Windows.Serialization.BamlParseException was unhandled
> Message="Error at element 'StaticExtension' in markup file '' : Could not
> load type 'System.Runtime.CompilerServices.NGenAttribute' from assembly
> 'mscorlib, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089'.."
> Source="PresentationFramework"
> LineNumber=0
> LinePosition=0
> StackTrace:
> at System.Windows.Serialization.BamlRecordReader.ReadRecord(BamlRecord
> bamlRecord)
> at System.Windows.Serialization.BamlRecordReader.Read(Boolean
> singleRecord)
> .
> .
> .
>
> Actually, this problem has stymied every install since Net 2.0 Beta1
> expired. Am now running RTM VS2005 on a cleaned system( as far as I can
> tell
> ).
>
> This occurs on any XAML app, including XAMLPad or even a blank Windows
> project.
>
> I have seen other references to this error but have not found a resolution
> for it.
> Any new information would be appreciated.
>
> Thank you.



Old 02-04-2006   #3 (permalink)
rl foster
Guest


 

Re: Another BamlParseException

Thanks for the reply.
Yeah, I saw that note. It looked promising as the trace started from the
same point. I think my error is somewhat different. It is complaining about
trying to load the NGenAttribute type rather than a binary format error.

I tried to catch a first chance exception; the only library that was
referenced was unsurprisingly PresentationFramework.dll

I'll include the complete trace for your viewing pleasure. This is a blank
Windows project. InitializeComponents() goes thru OK, but chokes on
app.run(). This behavior is consistent with any XAML app, including XAMLPad.

Thanks again for taking a look...

----------------------------------Start of
Trace-----------------------------------
System.Windows.Serialization.BamlParseException was unhandled
Message="Error at element 'StaticExtension' in markup file '' : Could not
load type 'System.Runtime.CompilerServices.NGenAttribute' from assembly
'mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.."
Source="PresentationFramework"
LineNumber=0
LinePosition=0
StackTrace:
at System.Windows.Serialization.BamlRecordReader.ReadRecord(BamlRecord
bamlRecord)
at System.Windows.Serialization.BamlRecordReader.Read(Boolean singleRecord)
at System.Windows.Serialization.TreeBuilderBamlTranslator.ParseFragment()
at System.Windows.Serialization.TreeBuilder.Parse()
at System.Windows.Serialization.XamlReader.LoadBaml(Stream stream,
ParserContext parserContext, Object parent, Boolean closeStream)
at
System.Windows.SystemResources.ResourceDictionaries.LoadDictionary(Assembly
assembly, String assemblyName, String resourceName, Boolean isTraceEnabled)
at
System.Windows.SystemResources.ResourceDictionaries.LoadThemedDictionary(Boolean isTraceEnabled)
at System.Windows.SystemResources.FindDictionaryResource(Object key, Type
typeKey, ResourceKey resourceKey, Boolean isTraceEnabled, Boolean
deferReference, Boolean& canCache)
at System.Windows.SystemResources.FindResourceInternal(Object key, Boolean
deferReference)
at System.Windows.SystemResources.FindThemeStyle(DependencyObjectType key)
at System.Windows.StyleHelper.GetThemeStyle(FrameworkElement fe,
FrameworkContentElement fce)
at System.Windows.FrameworkElement.UpdateThemeStyleProperty()
at System.Windows.FrameworkElement.OnInitialized(EventArgs e)
at System.Windows.FrameworkElement.TryFireInitialized()
at System.Windows.FrameworkElement.EndInit()
at
System.Windows.Serialization.BamlRecordReader.ReadElementEndRecord(Boolean
fromNestedBamlRecordReader)
at System.Windows.Serialization.BamlRecordReader.ReadRecord(BamlRecord
bamlRecord)
at System.Windows.Serialization.BamlRecordReader.Read(Boolean singleRecord)
at System.Windows.Serialization.TreeBuilderBamlTranslator.ParseFragment()
at System.Windows.Serialization.TreeBuilder.Parse()
at System.Windows.Serialization.XamlReader.LoadBaml(Stream stream,
ParserContext parserContext, Object parent, Boolean closeStream)
at MS.Internal.AppModel.AppModelKnownContentFactory.BamlConverter(Stream
stream, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean
sandboxExternalContent)
at MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStream(Stream s,
String contentType, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean
sandboxExternalContent)
at
System.Windows.Navigation.NavigationService.GetObjectFromResponse(WebRequest
request, WebResponse response, Uri destinationUri, Object navState)
at System.Windows.Navigation.NavigationService.DoNavigate(Uri source,
NavigationMode f, Object navState)
at System.Windows.Navigation.NavigateQueueItem.Dispatch(Object obj)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,
Delegate callback, Object args, Boolean isSingleParameter, Delegate
catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at
System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object
state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg,
IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam,
IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,
Delegate callback, Object args, Boolean isSingleParameter, Delegate
catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority
priority, TimeSpan timeout, Delegate method, Object args, Boolean
isSingleParameter)
at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority,
Delegate method, Object arg)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr
wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunInternal(Window window, String[] args)
at System.Windows.Application.Run(Window window, String[] args)
at System.Windows.Application.Run(String[] args)
at WindowsApplication2.MyApp.Main(String[] args) in
H:\$W\$Dev\WinFxJan06Trial\WindowsApplication2\WindowsApplication2\obj\Debug\MyApp.g.cs:line 51
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()


----------------------------------End of
Trace-----------------------------------

"Nick Kramer [MSFT]" wrote:

> Sounds like the issue described here:
> http://blogs.msdn.com/nickkramer/arc...20/506180.aspx
>
> --
> -Nick Kramer [MSFT]
> http://blogs.msdn.com/nickkramer
>
> ---
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
>
>
> "rl foster" <rlfoster@discussions.microsoft.com> wrote in message
> news:6A2928E1-07B4-4744-A9A8-36531CB3C201@microsoft.com...
> >I have run into the following exception on the Nov, Dec, and now January
> >CTP's:
> >
> > System.Windows.Serialization.BamlParseException was unhandled
> > Message="Error at element 'StaticExtension' in markup file '' : Could not
> > load type 'System.Runtime.CompilerServices.NGenAttribute' from assembly
> > 'mscorlib, Version=2.0.0.0, Culture=neutral,
> > PublicKeyToken=b77a5c561934e089'.."
> > Source="PresentationFramework"
> > LineNumber=0
> > LinePosition=0
> > StackTrace:
> > at System.Windows.Serialization.BamlRecordReader.ReadRecord(BamlRecord
> > bamlRecord)
> > at System.Windows.Serialization.BamlRecordReader.Read(Boolean
> > singleRecord)
> > .
> > .
> > .
> >
> > Actually, this problem has stymied every install since Net 2.0 Beta1
> > expired. Am now running RTM VS2005 on a cleaned system( as far as I can
> > tell
> > ).
> >
> > This occurs on any XAML app, including XAMLPad or even a blank Windows
> > project.
> >
> > I have seen other references to this error but have not found a resolution
> > for it.
> > Any new information would be appreciated.
> >
> > Thank you.

>
>
>

Old 02-04-2006   #4 (permalink)
Nick Kramer [MSFT]
Guest


 

Re: Another BamlParseException

I can't really think of anything other than the GAC problem appointed to.
Is it possible you have an older PresentationFramework.dll installed
somewhere?

-Nick Kramer [MSFT]
http://blogs.msdn.com/nickkramer

---
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"rl foster" <rlfoster@discussions.microsoft.com> wrote in message
news:705F2EA7-911D-4400-ADC4-1067691059D8@microsoft.com...
> Thanks for the reply.
> Yeah, I saw that note. It looked promising as the trace started from the
> same point. I think my error is somewhat different. It is complaining
> about
> trying to load the NGenAttribute type rather than a binary format error.
>
> I tried to catch a first chance exception; the only library that was
> referenced was unsurprisingly PresentationFramework.dll
>
> I'll include the complete trace for your viewing pleasure. This is a blank
> Windows project. InitializeComponents() goes thru OK, but chokes on
> app.run(). This behavior is consistent with any XAML app, including
> XAMLPad.
>
> Thanks again for taking a look...
>
> ----------------------------------Start of
> Trace-----------------------------------
> System.Windows.Serialization.BamlParseException was unhandled
> Message="Error at element 'StaticExtension' in markup file '' : Could not
> load type 'System.Runtime.CompilerServices.NGenAttribute' from assembly
> 'mscorlib, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089'.."
> Source="PresentationFramework"
> LineNumber=0
> LinePosition=0
> StackTrace:
> at System.Windows.Serialization.BamlRecordReader.ReadRecord(BamlRecord
> bamlRecord)
> at System.Windows.Serialization.BamlRecordReader.Read(Boolean
> singleRecord)
> at System.Windows.Serialization.TreeBuilderBamlTranslator.ParseFragment()
> at System.Windows.Serialization.TreeBuilder.Parse()
> at System.Windows.Serialization.XamlReader.LoadBaml(Stream stream,
> ParserContext parserContext, Object parent, Boolean closeStream)
> at
> System.Windows.SystemResources.ResourceDictionaries.LoadDictionary(Assembly
> assembly, String assemblyName, String resourceName, Boolean
> isTraceEnabled)
> at
> System.Windows.SystemResources.ResourceDictionaries.LoadThemedDictionary(Boolean
> isTraceEnabled)
> at System.Windows.SystemResources.FindDictionaryResource(Object key, Type
> typeKey, ResourceKey resourceKey, Boolean isTraceEnabled, Boolean
> deferReference, Boolean& canCache)
> at System.Windows.SystemResources.FindResourceInternal(Object key, Boolean
> deferReference)
> at System.Windows.SystemResources.FindThemeStyle(DependencyObjectType key)
> at System.Windows.StyleHelper.GetThemeStyle(FrameworkElement fe,
> FrameworkContentElement fce)
> at System.Windows.FrameworkElement.UpdateThemeStyleProperty()
> at System.Windows.FrameworkElement.OnInitialized(EventArgs e)
> at System.Windows.FrameworkElement.TryFireInitialized()
> at System.Windows.FrameworkElement.EndInit()
> at
> System.Windows.Serialization.BamlRecordReader.ReadElementEndRecord(Boolean
> fromNestedBamlRecordReader)
> at System.Windows.Serialization.BamlRecordReader.ReadRecord(BamlRecord
> bamlRecord)
> at System.Windows.Serialization.BamlRecordReader.Read(Boolean
> singleRecord)
> at System.Windows.Serialization.TreeBuilderBamlTranslator.ParseFragment()
> at System.Windows.Serialization.TreeBuilder.Parse()
> at System.Windows.Serialization.XamlReader.LoadBaml(Stream stream,
> ParserContext parserContext, Object parent, Boolean closeStream)
> at MS.Internal.AppModel.AppModelKnownContentFactory.BamlConverter(Stream
> stream, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean
> sandboxExternalContent)
> at MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStream(Stream
> s,
> String contentType, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean
> sandboxExternalContent)
> at
> System.Windows.Navigation.NavigationService.GetObjectFromResponse(WebRequest
> request, WebResponse response, Uri destinationUri, Object navState)
> at System.Windows.Navigation.NavigationService.DoNavigate(Uri source,
> NavigationMode f, Object navState)
> at System.Windows.Navigation.NavigateQueueItem.Dispatch(Object obj)
> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
> callback, Object args, Boolean isSingleParameter)
> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,
> Delegate callback, Object args, Boolean isSingleParameter, Delegate
> catchHandler)
> at System.Windows.Threading.DispatcherOperation.InvokeImpl()
> at
> System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object
> state)
> at System.Threading.ExecutionContext.runTryCode(Object userData)
> at
> System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
> code, CleanupCode backoutCode, Object userData)
> at System.Threading.ExecutionContext.RunInternal(ExecutionContext
> executionContext, ContextCallback callback, Object state)
> at System.Threading.ExecutionContext.Run(ExecutionContext
> executionContext,
> ContextCallback callback, Object state)
> at System.Windows.Threading.DispatcherOperation.Invoke()
> at System.Windows.Threading.Dispatcher.ProcessQueue()
> at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg,
> IntPtr wParam, IntPtr lParam, Boolean& handled)
> at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam,
> IntPtr lParam, Boolean& handled)
> at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
> callback, Object args, Boolean isSingleParameter)
> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,
> Delegate callback, Object args, Boolean isSingleParameter, Delegate
> catchHandler)
> at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority
> priority, TimeSpan timeout, Delegate method, Object args, Boolean
> isSingleParameter)
> at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority,
> Delegate method, Object arg)
> at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr
> wParam, IntPtr lParam)
> at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
> at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame
> frame)
> at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
> at System.Windows.Threading.Dispatcher.Run()
> at System.Windows.Application.RunInternal(Window window, String[] args)
> at System.Windows.Application.Run(Window window, String[] args)
> at System.Windows.Application.Run(String[] args)
> at WindowsApplication2.MyApp.Main(String[] args) in
> H:\$W\$Dev\WinFxJan06Trial\WindowsApplication2\WindowsApplication2\obj\Debug\MyApp.g.cs:line
> 51
> at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
> at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
> assemblySecurity, String[] args)
> at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
> at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
> at System.Threading.ExecutionContext.Run(ExecutionContext
> executionContext,
> ContextCallback callback, Object state)
> at System.Threading.ThreadHelper.ThreadStart()
>
>
> ----------------------------------End of
> Trace-----------------------------------
>
> "Nick Kramer [MSFT]" wrote:
>
>> Sounds like the issue described here:
>> http://blogs.msdn.com/nickkramer/arc...20/506180.aspx
>>
>> --
>> -Nick Kramer [MSFT]
>> http://blogs.msdn.com/nickkramer
>>
>> ---
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> Use of included script samples are subject to the terms specified at
>> http://www.microsoft.com/info/cpyright.htm
>>
>>
>> "rl foster" <rlfoster@discussions.microsoft.com> wrote in message
>> news:6A2928E1-07B4-4744-A9A8-36531CB3C201@microsoft.com...
>> >I have run into the following exception on the Nov, Dec, and now January
>> >CTP's:
>> >
>> > System.Windows.Serialization.BamlParseException was unhandled
>> > Message="Error at element 'StaticExtension' in markup file '' : Could
>> > not
>> > load type 'System.Runtime.CompilerServices.NGenAttribute' from assembly
>> > 'mscorlib, Version=2.0.0.0, Culture=neutral,
>> > PublicKeyToken=b77a5c561934e089'.."
>> > Source="PresentationFramework"
>> > LineNumber=0
>> > LinePosition=0
>> > StackTrace:
>> > at System.Windows.Serialization.BamlRecordReader.ReadRecord(BamlRecord
>> > bamlRecord)
>> > at System.Windows.Serialization.BamlRecordReader.Read(Boolean
>> > singleRecord)
>> > .
>> > .
>> > .
>> >
>> > Actually, this problem has stymied every install since Net 2.0 Beta1
>> > expired. Am now running RTM VS2005 on a cleaned system( as far as I can
>> > tell
>> > ).
>> >
>> > This occurs on any XAML app, including XAMLPad or even a blank Windows
>> > project.
>> >
>> > I have seen other references to this error but have not found a
>> > resolution
>> > for it.
>> > Any new information would be appreciated.
>> >
>> > Thank you.

>>
>>
>>



Old 02-08-2006   #5 (permalink)
rl foster
Guest


 

Re: Another BamlParseException

I have located two references to PresentationFramework.dll in the GAC:
versions 6.0.4030 and 6.0.5070(Zap type).
Presume they were loaded from these dll files:
H:\WINDOWS\Microsoft.NET\Windows\v6.0.4030\PresentationFramework.dll
File Version : 6.0.4093.041006
Product Version : 6.0.4093.041006
Public Key Token: 31bf3856ad364e35
Product Name:
Assmbly Version : 6.0.4093.41006


H:\WINDOWS\Microsoft.NET\Windows\v6.0.5070\PresentationFramework.dll
File Version : 6.0.5070.0 (vbl_wcp_avalon(avdrt).051106-2310)
Product Version : 6.0.5070.0
Public Key Token 31bf3856ad364e35

Product Name: Microsoft® Windows® Operating System

I started up a FileMonitor and reran XMLPad, which suggested that it was
accessing version 6.0.4030.0(PresentationCore).

Am not able to remove either assembly from the GAC due to dependency issues.

Any suggestions would be appreciated. Thanks.

"Nick Kramer [MSFT]" wrote:

> I can't really think of anything other than the GAC problem appointed to.
> Is it possible you have an older PresentationFramework.dll installed
> somewhere?
>
> -Nick Kramer [MSFT]
> http://blogs.msdn.com/nickkramer
>
> ---
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
>
>
> "rl foster" <rlfoster@discussions.microsoft.com> wrote in message
> news:705F2EA7-911D-4400-ADC4-1067691059D8@microsoft.com...
> > Thanks for the reply.
> > Yeah, I saw that note. It looked promising as the trace started from the
> > same point. I think my error is somewhat different. It is complaining
> > about
> > trying to load the NGenAttribute type rather than a binary format error.
> >
> > I tried to catch a first chance exception; the only library that was
> > referenced was unsurprisingly PresentationFramework.dll
> >
> > I'll include the complete trace for your viewing pleasure. This is a blank
> > Windows project. InitializeComponents() goes thru OK, but chokes on
> > app.run(). This behavior is consistent with any XAML app, including
> > XAMLPad.
> >
> > Thanks again for taking a look...
> >
> > ----------------------------------Start of
> > Trace-----------------------------------
> > System.Windows.Serialization.BamlParseException was unhandled
> > Message="Error at element 'StaticExtension' in markup file '' : Could not
> > load type 'System.Runtime.CompilerServices.NGenAttribute' from assembly
> > 'mscorlib, Version=2.0.0.0, Culture=neutral,
> > PublicKeyToken=b77a5c561934e089'.."
> > Source="PresentationFramework"
> > LineNumber=0
> > LinePosition=0
> > StackTrace:
> > at System.Windows.Serialization.BamlRecordReader.ReadRecord(BamlRecord
> > bamlRecord)
> > at System.Windows.Serialization.BamlRecordReader.Read(Boolean
> > singleRecord)
> > at System.Windows.Serialization.TreeBuilderBamlTranslator.ParseFragment()
> > at System.Windows.Serialization.TreeBuilder.Parse()
> > at System.Windows.Serialization.XamlReader.LoadBaml(Stream stream,
> > ParserContext parserContext, Object parent, Boolean closeStream)
> > at
> > System.Windows.SystemResources.ResourceDictionaries.LoadDictionary(Assembly
> > assembly, String assemblyName, String resourceName, Boolean
> > isTraceEnabled)
> > at
> > System.Windows.SystemResources.ResourceDictionaries.LoadThemedDictionary(Boolean
> > isTraceEnabled)
> > at System.Windows.SystemResources.FindDictionaryResource(Object key, Type
> > typeKey, ResourceKey resourceKey, Boolean isTraceEnabled, Boolean
> > deferReference, Boolean& canCache)
> > at System.Windows.SystemResources.FindResourceInternal(Object key, Boolean
> > deferReference)
> > at System.Windows.SystemResources.FindThemeStyle(DependencyObjectType key)
> > at System.Windows.StyleHelper.GetThemeStyle(FrameworkElement fe,
> > FrameworkContentElement fce)
> > at System.Windows.FrameworkElement.UpdateThemeStyleProperty()
> > at System.Windows.FrameworkElement.OnInitialized(EventArgs e)
> > at System.Windows.FrameworkElement.TryFireInitialized()
> > at System.Windows.FrameworkElement.EndInit()
> > at
> > System.Windows.Serialization.BamlRecordReader.ReadElementEndRecord(Boolean
> > fromNestedBamlRecordReader)
> > at System.Windows.Serialization.BamlRecordReader.ReadRecord(BamlRecord
> > bamlRecord)
> > at System.Windows.Serialization.BamlRecordReader.Read(Boolean
> > singleRecord)
> > at System.Windows.Serialization.TreeBuilderBamlTranslator.ParseFragment()
> > at System.Windows.Serialization.TreeBuilder.Parse()
> > at System.Windows.Serialization.XamlReader.LoadBaml(Stream stream,
> > ParserContext parserContext, Object parent, Boolean closeStream)
> > at MS.Internal.AppModel.AppModelKnownContentFactory.BamlConverter(Stream
> > stream, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean
> > sandboxExternalContent)
> > at MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStream(Stream
> > s,
> > String contentType, Uri baseUri, Boolean canUseTopLevelBrowser, Boolean
> > sandboxExternalContent)
> > at
> > System.Windows.Navigation.NavigationService.GetObjectFromResponse(WebRequest
> > request, WebResponse response, Uri destinationUri, Object navState)
> > at System.Windows.Navigation.NavigationService.DoNavigate(Uri source,
> > NavigationMode f, Object navState)
> > at System.Windows.Navigation.NavigateQueueItem.Dispatch(Object obj)
> > at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
> > callback, Object args, Boolean isSingleParameter)
> > at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,
> > Delegate callback, Object args, Boolean isSingleParameter, Delegate
> > catchHandler)
> > at System.Windows.Threading.DispatcherOperation.InvokeImpl()
> > at
> > System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object
> > state)
> > at System.Threading.ExecutionContext.runTryCode(Object userData)
> > at
> > System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
> > code, CleanupCode backoutCode, Object userData)
> > at System.Threading.ExecutionContext.RunInternal(ExecutionContext
> > executionContext, ContextCallback callback, Object state)
> > at System.Threading.ExecutionContext.Run(ExecutionContext
> > executionContext,
> > ContextCallback callback, Object state)
> > at System.Windows.Threading.DispatcherOperation.Invoke()
> > at System.Windows.Threading.Dispatcher.ProcessQueue()
> > at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg,
> > IntPtr wParam, IntPtr lParam, Boolean& handled)
> > at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam,
> > IntPtr lParam, Boolean& handled)
> > at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
> > at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
> > callback, Object args, Boolean isSingleParameter)
> > at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,
> > Delegate callback, Object args, Boolean isSingleParameter, Delegate
> > catchHandler)
> > at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority
> > priority, TimeSpan timeout, Delegate method, Object args, Boolean
> > isSingleParameter)
> > at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority,
> > Delegate method, Object arg)
> > at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr
> > wParam, IntPtr lParam)
> > at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
> > at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame
> > frame)
> > at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
> > at System.Windows.Threading.Dispatcher.Run()
> > at System.Windows.Application.RunInternal(Window window, String[] args)
> > at System.Windows.Application.Run(Window window, String[] args)
> > at System.Windows.Application.Run(String[] args)
> > at WindowsApplication2.MyApp.Main(String[] args) in
> > H:\$W\$Dev\WinFxJan06Trial\WindowsApplication2\WindowsApplication2\obj\Debug\MyApp.g.cs:line
> > 51
> > at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
> > at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
> > assemblySecurity, String[] args)
> > at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
> > at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
> > at System.Threading.ExecutionContext.Run(ExecutionContext
> > executionContext,
> > ContextCallback callback, Object state)
> > at System.Threading.ThreadHelper.ThreadStart()
> >
> >
> > ----------------------------------End of
> > Trace-----------------------------------
> >
> > "Nick Kramer [MSFT]" wrote:
> >
> >> Sounds like the issue described here:
> >> http://blogs.msdn.com/nickkramer/arc...20/506180.aspx
> >>
> >> --
> >> -Nick Kramer [MSFT]
> >> http://blogs.msdn.com/nickkramer
> >>
> >> ---
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >> Use of included script samples are subject to the terms specified at
> >> http://www.microsoft.com/info/cpyright.htm
> >>
> >>
> >> "rl foster" <rlfoster@discussions.microsoft.com> wrote in message
> >> news:6A2928E1-07B4-4744-A9A8-36531CB3C201@microsoft.com...
> >> >I have run into the following exception on the Nov, Dec, and now January
> >> >CTP's:
> >> >
> >> > System.Windows.Serialization.BamlParseException was unhandled
> >> > Message="Error at element 'StaticExtension' in markup file '' : Could
> >> > not
> >> > load type 'System.Runtime.CompilerServices.NGenAttribute' from assembly
> >> > 'mscorlib, Version=2.0.0.0, Culture=neutral,
> >> > PublicKeyToken=b77a5c561934e089'.."
> >> > Source="PresentationFramework"
> >> > LineNumber=0
> >> > LinePosition=0
> >> > StackTrace:
> >> > at System.Windows.Serialization.BamlRecordReader.ReadRecord(BamlRecord
> >> > bamlRecord)
> >> > at System.Windows.Serialization.BamlRecordReader.Read(Boolean
> >> > singleRecord)
> >> > .
> >> > .
> >> > .
> >> >
> >> > Actually, this problem has stymied every install since Net 2.0 Beta1
> >> > expired. Am now running RTM VS2005 on a cleaned system( as far as I can
> >> > tell
> >> > ).
> >> >
> >> > This occurs on any XAML app, including XAMLPad or even a blank Windows
> >> > project.
> >> >
> >> > I have seen other references to this error but have not found a
> >> > resolution
> >> > for it.
> >> > Any new information would be appreciated.
> >> >
> >> > Thank you.
> >>
> >>
> >>

>
>
>

Closed Thread

Thread Tools
Display Modes









Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50