Locbaml and the RibbonWindow

Feb 9, 2009 at 3:54 AM
I've run Locbaml against a Window with the RibbonControl on it and get the error:



System.TypeInitializationException occurred
Message="The type initializer for 'Microsoft.Windows.Controls.Ribbon.RibbonWindow' threw an exception."
Source="mscorlib"
TypeName="Microsoft.Windows.Controls.Ribbon.RibbonWindow"
StackTrace:
at System.Runtime.CompilerServices.RuntimeHelpers._RunClassConstructor(IntPtr type)
at System.Windows.DependencyProperty.FromName(String name, Type ownerType)
at System.Windows.Markup.BamlWriter.GetDpOrPi(Type ownerType, String propName)
at System.Windows.Markup.BamlWriter.GetDpOrPi(String assemblyName, String ownerTypeFullName, String propName, Object& dpOrPi, Type& ownerType)
at System.Windows.Markup.BamlWriter.WriteProperty(String assemblyName, String ownerTypeFullName, String propName, String value, BamlAttributeUsage propUsage)
at MS.Internal.Globalization.BamlPropertyNode.Serialize(BamlWriter writer)
at MS.Internal.Globalization.BamlResourceSerializer.SerializeImp(BamlLocalizer localizer, BamlTree tree, Stream output)
at System.Windows.Markup.Localizer.BamlLocalizer.UpdateBaml(Stream target, BamlLocalizationDictionary updates)
at BamlLocalization.ResourceGenerator.GenerateBamlStream(Stream input, Stream output, BamlLocalizationDictionary dictionary, LocBamlOptions options) in D:\dev\LocBaml\ResourceGenerator.cs:line 158
InnerException: System.NotSupportedException
Message="The URI prefix is not recognized."
Source="System"
StackTrace:
at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)
at System.Net.WebRequest.Create(Uri requestUri)
at MS.Internal.WpfWebRequestHelper.CreateRequest(Uri uri)
at System.IO.Packaging.PackWebRequest.GetRequest(Boolean allowPseudoRequest)
at System.IO.Packaging.PackWebRequest.GetResponse()
at MS.Internal.WpfWebRequestHelper.GetResponse(WebRequest request)
at MS.Internal.WpfWebRequestHelper.GetResponseStream(WebRequest request, ContentType& contentType)
at System.Windows.ResourceDictionary.set_Source(Uri value)
at Microsoft.Windows.Controls.Ribbon.RibbonWindow..cctor()
InnerException:


where xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"

and the mainwindow is a RibbonWindow and if I take it out then locbaml works ok.  Anyone else done this?