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

baml parse error - November CTP

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 01-10-2006   #1 (permalink)
wolfi
Guest


 

baml parse error - November CTP

I recently installed the November CTP, now I get the Exception
"Error at element 'StaticExtension' in markup file '' : Binary format of the
specified custom attribute was invalid.."
whenever I compile and try to start a XAML based application
Also, XamlPad crashes with the same result.
I'm running XP Home SP2, an VS2005 VSTS Release version.

Any idea ?
--
Wolfgang B.

My System SpecsSystem Spec
Old 01-10-2006   #2 (permalink)
Nick Kramer [MSFT]
Guest


 

Re: baml parse error - November CTP

Haven't seen that before. What's the complete error message and call stack?

--
-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


"wolfi" <wolfi@discussions.microsoft.com> wrote in message
news:73F96E73-3484-4A56-AFA6-599B9964C911@microsoft.com...
>I recently installed the November CTP, now I get the Exception
> "Error at element 'StaticExtension' in markup file '' : Binary format of
> the
> specified custom attribute was invalid.."
> whenever I compile and try to start a XAML based application
> Also, XamlPad crashes with the same result.
> I'm running XP Home SP2, an VS2005 VSTS Release version.
>
> Any idea ?
> --
> Wolfgang B.



My System SpecsSystem Spec
Old 01-10-2006   #3 (permalink)
wolfi
Guest


 

Re: baml parse error - November CTP

Here's the exeception detail.
I've installed the same environment on another machine today. Here
everything is ok. I have compared module versions and binaries. Everything
seems to be exactly the same. The only difference is that I use XP Home
German on the computer with the problem and XP professional Multilanguage on
the other machine.
=============================================
System.Windows.Serialization.BamlParseException was unhandled
Message="Error at element 'StaticExtension' in markup file '' : Binary
format of the specified custom attribute was invalid.."
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 WindowsApplication1.MyApp.Main(String[] args) in C:\Dokumente und
Einstellungen\Wolfgang\Eigene Dateien\Visual Studio
2005\Projects\Solution1\WindowsApplication1\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()
=============================================

--
Wolfgang B.


"Nick Kramer [MSFT]" wrote:

> Haven't seen that before. What's the complete error message and call stack?
>
> --
> -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
>
>
> "wolfi" <wolfi@discussions.microsoft.com> wrote in message
> news:73F96E73-3484-4A56-AFA6-599B9964C911@microsoft.com...
> >I recently installed the November CTP, now I get the Exception
> > "Error at element 'StaticExtension' in markup file '' : Binary format of
> > the
> > specified custom attribute was invalid.."
> > whenever I compile and try to start a XAML based application
> > Also, XamlPad crashes with the same result.
> > I'm running XP Home SP2, an VS2005 VSTS Release version.
> >
> > Any idea ?
> > --
> > Wolfgang B.

>
>
>

My System SpecsSystem Spec
Old 01-10-2006   #4 (permalink)
Dieter
Guest


 

Re: baml parse error - November CTP

I have this problem also when i create a WinFX Windows application
a WinFX browser application works fine.
fresh install Win2003 Server, SP1, VS.NET 2005 Final . november CTP Avalon

mvg
dieter
"wolfi" <wolfi@discussions.microsoft.com> wrote in message
news:73F96E73-3484-4A56-AFA6-599B9964C911@microsoft.com...
>I recently installed the November CTP, now I get the Exception
> "Error at element 'StaticExtension' in markup file '' : Binary format of
> the
> specified custom attribute was invalid.."
> whenever I compile and try to start a XAML based application
> Also, XamlPad crashes with the same result.
> I'm running XP Home SP2, an VS2005 VSTS Release version.
>
> Any idea ?
> --
> Wolfgang B.



My System SpecsSystem Spec
Old 01-10-2006   #5 (permalink)
wolfi
Guest


 

Re: baml parse error - November CTP

Hi, now i'm totally stuck
Just have completely re-installed everything from scratch (starting from
system image), then VS2005, then all WinFX components in the recommended
order. After many hours of installation, the error is still the same. I've
used unmanaged setting to get a better stack backtrace: Here it is
===========================================

PresentationFramework.dll!System.Windows.Serialization.BamlRecordReader.ReadRecord(System.Windows.Serialization.BamlRecord bamlRecord) + 0x5ca bytes

PresentationFramework.dll!System.Windows.Serialization.BamlRecordReader.Read(bool singleRecord = false) + 0x18 bytes

PresentationFramework.dll!System.Windows.Serialization.TreeBuilderBamlTranslator.ParseFragment() + 0xbb bytes
PresentationFramework.dll!System.Windows.Serialization.TreeBuilder.Parse()
+ 0xd bytes

PresentationFramework.dll!System.Windows.Serialization.XamlReader.LoadBaml(System.IO.Stream
stream, System.Windows.Serialization.ParserContext parserContext, object
parent, bool closeStream) + 0x83 bytes

PresentationFramework.dll!MS.Internal.AppModel.AppModelKnownContentFactory.BamlConverter(System.IO.Stream
stream, System.Uri baseUri, bool canUseTopLevelBrowser, bool
sandboxExternalContent) + 0x139 bytes

PresentationFramework.dll!MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStream(System.IO.Stream
s, string contentType, System.Uri baseUri, bool canUseTopLevelBrowser, bool
sandboxExternalContent) + 0x7e bytes

PresentationFramework.dll!System.Windows.Navigation.NavigationService.GetObjectFromResponse(System.Net.WebRequest
request = {System.IO.Packaging.PackWebRequest}, System.Net.WebResponse
response = {System.IO.Packaging.PackWebResponse}, System.Uri destinationUri =
{pack://application:,,,/Window1.xaml}, object navState = null) + 0x10e bytes

PresentationFramework.dll!System.Windows.Navigation.NavigationService.DoNavigate(System.Uri
source, System.Windows.Navigation.NavigationMode f, object navState) + 0x4e
bytes

PresentationFramework.dll!System.Windows.Navigation.NavigateQueueItem.Dispatch(object obj) + 0x48 bytes

WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate
callback = {System.Windows.Threading.DispatcherOperationCallback}, object
args = null, bool isSingleParameter = true) + 0x4a bytes

WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object
source = {System.Windows.Threading.Dispatcher}, System.Delegate callback,
object args, bool isSingleParameter, System.Delegate catchHandler = null) +
0x3f bytes
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl()
+ 0xf6 bytes

WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(object state) + 0x28 bytes
mscorlib.dll!System.Threading.ExecutionContext.runTryCode(object userData)
+ 0x43 bytes
===========================================
Is there a security issue ("Inkoke InSecurityContext" called above?) or can
it be a problem with localized components ?
Having installed the whole stuff on 3 PCs I have the following situation:
WINXP Prof/English: seems OK - but this PC if unavailable most of the time
WINXP Home/German (1) (my work-PC) : crashes with above error
WINXP Home/German (2) (another PC in my office, NO VS2005 installed) : A
single WinFX application runs ONCE after reboot, the next times, all WinFX
applications show blank black windows.

--
Wolfgang B.


"Dieter" wrote:

> I have this problem also when i create a WinFX Windows application
> a WinFX browser application works fine.
> fresh install Win2003 Server, SP1, VS.NET 2005 Final . november CTP Avalon
>
> mvg
> dieter
> "wolfi" <wolfi@discussions.microsoft.com> wrote in message
> news:73F96E73-3484-4A56-AFA6-599B9964C911@microsoft.com...
> >I recently installed the November CTP, now I get the Exception
> > "Error at element 'StaticExtension' in markup file '' : Binary format of
> > the
> > specified custom attribute was invalid.."
> > whenever I compile and try to start a XAML based application
> > Also, XamlPad crashes with the same result.
> > I'm running XP Home SP2, an VS2005 VSTS Release version.
> >
> > Any idea ?
> > --
> > Wolfgang B.

>
>
>

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
November 2007 Vista Sidebar Calendar Error Peter in Rio Vista General 5 10-29-2007 07:16 AM
Using Parse-TextObject J.Marsch PowerShell 6 01-19-2007 08:20 AM
Parse hyperlinks Jan Kucera Avalon 4 11-27-2006 07:56 AM
XBAP application error: "cannot locate BAML" vipin.v.deep@gmail.com Avalon 0 09-27-2006 06:14 AM
getting baml exception regularly... madhur Avalon 4 03-07-2006 08:08 AM


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 51