![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| parse files | VB Script | |||
| November 2007 Vista Sidebar Calendar Error | Vista General | |||
| Using Parse-TextObject | PowerShell | |||