Windows Entertainment and Connected Home

How to organize, access and enjoy all of your media in and around your home

Separate assembly for UI/Markup. Can't see MCML load errors

  • rated by 0 users
  • This post has 23 Replies |
  • 2 Followers
Page 1 of 2 (24 items) 12
  •  

    [Posting here cuz I can't do password rest from the sandbox]

    Hey, guys, this is the first time I am breaking out my app so that all the UI code and markup is in a separate assembly. Now that I have it broken out, the main plug-in that references the UI assembly runs but I don't see anything. I have debugging enabled (including error details) but  in Windows 7, I just don't see anything other than a bluescreen. In the past, on Vista, if I had a typo or some error in the MCML I would get get error details immediately but nothing under Win 7

    My questions are:

    (1) Is there any guidance for having your UI in a separate DLL ?

    (2) Is there something different in Windows 7 when it comes to displaying  MCML load errors?

    Thanks

  •  

    I don't think this is (directly) due to you having UI in a seperate dll. I have seen issues under Win7 where just as you have described, it dies and leaves you with the default blue background. This has only been due to MCML errors and nothing code behind. So, for example if it can't find a resource you get the default blue screen. Spiffy, I know.

    I haven't found a workaround for this beyond testing under Vista...

  •  

    Argh. I copied my tvlibrary project and renamed everything (all strings) to VideoLibraryEngine.UI. I made sure the project properties have the correct namespace and everything. This is maddening. How c an they have a new version yet don't display the thrice-damned error messages when they used to do this under Vista

  •  
    Thinking about this I also had issue setting teh debug key (http://msdn.microsoft.com/en-us/library/bb189051.aspx) manually on a clean win7 install. Doing so on two win7 boxes did nothing. Something you might want to try is to install the 6.0 sdk. Once I did this, things started to work. I can't say for sure if this will resolve your problem, but I would give it a shot.
  •  

    I do already have the media center 6.0 sdk. I'll try re-installing.

  •  
    Don't bother. I just recreated it on a box that had the issue with the debug key. With invalid MCML I get a nice blue media center background. What I did notice is that loading the invalid MCML directly using the preview tool did show the invalid markup which makes me wonder if it has to do with a HistoryOrientedPageSession hack that I do. Either that or I guess it could be due to a referenced MCML page and not one loaded directly.
  •  

    Thanks for lending another eye to my proble, MSBob. I created a bat file to run mcmlverifier and it keeps throwing errors about loading my Styles.mcml file. I don't get it. This is the same file I had before I did  the name changing. In case you might see something obvious that I am just not seeing Smile here are the verifier output and the styles.mcml. The assembly dll is "VideoLibraryEngine.UI.dll" and the namespace is "VideoLibraryEngine.UI"

     ----- Verifier ----

    Microsoft (R) MediaCenter Markup Language (MCML) Verifier version 1.00
    Copyright (C) Microsoft Corporation 2006. All rights reserved.

    resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles: Failure acquiring MCML markup from 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Views\BrowsePage.mcml: Unable to load 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles: Failure acquiring MCML markup from 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Views\ContextMenu.mcml: Unable to load 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles: Failure acquiring MCML markup from 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Views\DetailsPage.mcml: Unable to load 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles: Failure acquiring MCML markup from 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Views\DvdMenu.mcml: Unable to load 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles: Failure acquiring MCML markup from 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Views\LoadingPage.mcml: Unable to load 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles: Failure acquiring MCML markup from 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Views\Seekbar.mcml: Unable to load 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles: Failure acquiring MCML markup from 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Views\VideoPlayback.mcml: Unable to load 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    file://C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Styles\Animations.mcml - OK!
    resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Animations: Failure acquiring MCML markup from 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Animations'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Styles\Styles.mcml: Unable to load 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Animations'.
    resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles: Failure acquiring MCML markup from 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Gallery\Gallery.mcml: Unable to load 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles: Failure acquiring MCML markup from 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Gallery\Pivots.mcml: Unable to load 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    resx://VideoLibrary/VideoLibrary.Resources/Styles: Failure acquiring MCML markup from 'resx://VideoLibrary/VideoLibrary.Resources/Styles'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Controls\Branding.mcml: Unable to load 'resx://VideoLibrary/VideoLibrary.Resources/Styles'.
    resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles: Failure acquiring MCML markup from 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Controls\Buttons.mcml: Unable to load 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles: Failure acquiring MCML markup from 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Controls\Controls.mcml: Unable to load 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles: Failure acquiring MCML markup from 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Controls\SlideDeck.mcml: Unable to load 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles: Failure acquiring MCML markup from 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.
    C:\Users\JackLuminous\Documents\Projects\MediaCenter\VideoLibraryEngine.UI\Markup\Controls\Spinner.mcml: Unable to load 'resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Styles'.

     

    ---Styes ---

    <Mcml xmlns="http://schemas.microsoft.com/2006/mcml"

    xmlns:cor="assembly://MsCorLib/System"

    xmlns:me="Me">

    <!-- Include -->

    <Aggregate Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Animations"/>

     

    <!--
    Fonts -->

    <Font Name="Branding.Font" Font="Segoe UI,48"/>

    <Font Name="Gallery.Item.Font" Font="Segoe UI,16"/>

    <Font Name="Gallery.Category.Font" Font="Segoe UI,18"/>

    <Font Name="Gallery.Category.Item.Font" Font="Segoe UI,18"/>

    <Font Name="Gallery.Category.ItemCount.Font" Font="Segoe UI,16"/>

    <Font Name="Gallery.Category.Item.Focus.Font" Font="Segoe UI,14"/>

    <Font Name="Gallery.List.Item.Font" Font="Segoe UI,24"/>

    <Font Name="Hyperlink.Font" Font="Segoe UI,12"/>

    <Font Name="Content.Item.Font" Font="Segoe UI,12"/>

    <Font Name="Content.Item.Focus.Font" Font="Segoe UI,12"/>

    <Font Name="Counter.Current.Font" Font="Segoe UI,14"/>

    <Font Name="Counter.Divider.Font" Font="Segoe UI,14"/>

    <Font Name="Counter.Total.Font" Font="Segoe UI,14"/>

    <Font Name="Error.MessageFailure.Font" Font="Segoe UI,24"/>

    <Font Name="Error.MessageRetry.Font" Font="Segoe UI,24"/>

    <Font Name="Pivot.Item.Font" Font="Segoe UI,24"/>

    <Font Name="Pivot.Item.Secondary.Font" Font="Segoe UI,32"/>

    <Font Name="Pivot.Item.Small.Font" Font="Segoe UI,16"/>

    <Font Name="Pivot.Item.Small.Secondary.Font" Font="Segoe UI,14"/>

    <Font Name="Ranked.Font" Font="Segoe UI,72"/>

    <Font Name="Gallery.SubCategory.Title.Font" Font="Segoe UI,34"/>

    <Font Name="BuildNumber.Font" Font="Segoe UI,16"/>

    <Font Name="Playback.Title.Font" Font="Segoe UI,20"/>

    <Font Name="Playback.Synopsis.Font" Font="Segoe UI,16"/>

    <Font Name="Overlay.SlideDeck.Title.Font" Font="Segoe UI,28"/>

    <Font Name="Overlay.SlideDeck.Title.Selected.Font" Font="Segoe UI,34" />

    <Font Name="Overlay.Control.Button.Label.Font" Font="Segoe UI,24,Bold"/>

    <Font Name="NowPlaying.Slide.Details.Title.Font" Font="Segoe UI,20" />

    <Font Name="NowPlaying.Slide.Details.Body.Font" Font="Segoe UI,18" />

    <Font Name="NowPlaying.PIP.Font" Font="Segoe Media Center Semibold,16"/>

    <Font Name="SeekBar.Label.Font" Font="Segoe UI,18"/>

    <Font Name="SeekBar.Clock.Font" Font="Segoe UI,19"/>

    <Font Name="Metadata.Title.Font" Font="Segoe Media Center Semibold,24"/>

    <Font Name="Metadata.SubTitle.Font" Font="Segoe Media Center Semibold,19"/>

    <Font Name="Metadata.ItemCount.Font" Font="Segoe Media Center Semibold,16"/>

    <Font Name="Metadata.Synopsis.Font" Font="Segoe Media Center Semibold,19"/>

    <Font Name="Metadata.ProgramInfo.Font" Font="Segoe Media Center Semibold,19"/>

    <Font Name="Metadata.ProgramInfo.Smaller.Font" Font="Segoe Media Center Semibold,16"/>

    <Font Name="FadedTitle.Font" Font="Segoe Media Center Light, 48"/>

    <Font Name="Gallery.JILKey.Font" Font="Arial, 150" />

    <Font Name="Default.Font" Font="Segoe UI, 20"/>

    <Font Name="Default.Smaller.Font" Font="Segoe UI, 16"/><Font Name="Default.Large.Font" Font="Segoe UI, 48"/>

     

    <!-- Colours -->

    <Color Name="BackgroundFilter.Color" Color="128,73,184,227" />

    <Color Name="List.Item.Primary.Color" Color="128,242,242,242"/>

    <Color Name="List.Item.Primary.Focus.Color" Color="255,242,242,242"/>

    <Color Name="HyperLink.Color" Color="150,151,217,255"/>

    <Color Name="HyperLink.Focus.Color" Color="255,242,242,242"/>

    <Color Name="HyperLink.Hover.Color" Color="200,242,242,242"/>

    <Color Name="Content.Item.Background.Color" Color="150,150,150,150"/>

    <Color Name="Content.Item.Effect.Color" Color="255,0,0,0"/>

    <Color Name="Gallery.Item.Color" Color="255,151,217,255"/>

    <Color Name="Gallery.Item.Background.Color" Color="150,150,150,150"/>

    <Color Name="Gallery.Item.Effect.Color" Color="255,0,0,0"/>

    <Color Name="Gallery.Item.Color" Color="255,151,217,255"/>

    <Color Name="Gallery.Item.Focus.Color" Color="255,242,242,242"/>

    <Color Name="Gallery.Item.Hover.Color" Color="255,242,242,242"/>

    <Color Name="Gallery.Item.Mask.Color" Color="TVWhite"/>

    <Color Name="Gallery.SubCategory.Title.Mask.Color" Color="TVBlack"/>

    <Color Name="Counter.Text.Color" Color="255,242,242,242"/>

    <Color Name="Counter.Current.Color" Color="255,242,242,242"/>

    <Color Name="Counter.Divider.Color" Color="128,242,242,242"/>

    <Color Name="Counter.Total.Color" Color="128,242,242,242"/>

    <Color Name="Error.MessageFailure.Color" Color="200,242,242,242"/>

    <Color Name="Error.MessageRetry.Color" Color="128,73,184,227"/>

    <Color Name="Pivot.Item.Color" Color="128,73,184,227"/>

    <Color Name="Pivot.Item.Focus.Color" Color="255,242,242,242"/>

    <Color Name="Pivot.Item.Hover.Color" Color="200,242,242,242"/>

    <Color Name="Pivot.Item.Chosen.Color" Color="200,242,242,242"/>

    <Color Name="Pivot.Item.Mask.Color" Color="TVBlack"/>

    <Color Name="BuildNumber.Color" Color="128,242,242,242"/>

    <Color Name="Playback.Title.Color" Color="255,242,242,242"/>

    <Color Name="Playback.Synopsis.Color" Color="255,151,217,255"/>

    <Color Name="Playback.Overlay.Background.Color" Color="255,5,33,96"/>

    <Color Name="Overlay.SlideHost.Background.Color" Color="255,5,33,96"/>

    <Color Name="Overlay.Control.Background.Color" Color="255,9,51,77"/>

    <Color Name="Overlay.SlideDeck.Title.Color" Color="255,151,217,255"/>

    <Color Name="Overlay.Control.ActiveButton.Label.Color" Color="255,242,242,242"/>

    <Color Name="Overlay.Clock.Label.Color" Color="255,242,242,242"/>

    <Color Name="Overlay.Control.InactiveButton.Label.Color" Color="255,242,242,242"/>

     

    <
    Color Name="NowPlaying.Slide.Title.Color" Color="White"/>

    <Color Name="NowPlaying.Slide.SubTitle.Color" Color="White"/>

    <Color Name="NowPlaying.Slide.Details.Color" Color="255,84,201,247"/>

    <Color Name="Playback.Overlay.Background.Color" Color="255,9,51,77"/>

    <Color Name="SeekBar.Label.Color" Color="255,242,242,242"/>

    <Color Name="SeekBar.Clock.Color" Color="255,151,217,255"/>

    <Color Name="Metadata.Title.Color" Color="255,242,242,242"/>

    <Color Name="Metadata.SubTitle.Color" Color="255,242,242,242"/>

    <Color Name="Metadata.ItemCount.Color" Color="255,151,217,255"/>

    <Color Name="Metadata.Synopsis.Color" Color="255,151,217,255"/>

    <Color Name="Metadata.ProgramInfo.Color" Color="255,151,217,255"/>

    <Color Name="Gallery.JILKey.Color" Color="AntiqueWhite" />

    <Color Name="Gallery.JILKey.Shadow.Color" Color="Black" />

    <Color Name="Transparent.Color" Color="0,0,0,0"/>

    <Color Name="Default.Color" Color="LightBlue"/>

    <Color Name="Default.Focus.Color" Color="White"/>

    <Color Name="FadedTitle.Color" Color="255, 2, 166, 212"/>

    <!-- Images -->

    <Image Name="AutoScroll.Left.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/AutoScroll_Chevron_Left"/>

    <Image Name="AutoScroll.Left.Pressed.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/AutoScroll_Chevron_Left_Pressed"/>

    <Image Name="AutoScroll.Right.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/AutoScroll_Chevron_Right"/>

    <Image Name="AutoScroll.Right.Pressed.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/AutoScroll_Chevron_Right_Pressed"/>

    <Image Name="Browse.Partner.Logo.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/msn_logo.png"/>

    <Image Name="ButtonHyperLink.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/ButtonHyperLink"/>

    <Image Name="ErrorHandler.Retail.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/LoadFailure"/>

     

    <
    Image Name="Gallery.Top.Fade.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Gallery_Top_Fade"/>

    <Image Name="Gallery.Bottom.Fade.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Gallery_Bottom_Fade"/>

    <Image Name="Gallery.Item.MissingPoster.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Gallery_Item_MissingImage_Poster"/>

    <Image Name="Gallery.Item.MissingThumbnail.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Gallery_Item_MissingImage_Thumbnail"/>

    <Image Name="Gallery.Item.MissingWidescreen.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Gallery_Item_MissingImage_Widescreen"/>

    <Image Name="Gallery.Item.MissingBanner.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Gallery_Item_MissingImage_Banner"/>

    <Image Name="Gallery.Item.Shadow.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Gallery_Item_Shadow"/>

    <Image Name="Gallery.Item.Glaze.Image" Image="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Gallery_Item_Glaze"/>

    <Image Name="ContextMenu.Background.Image" Image="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/ContextMenu_Background"/>

    <Image Name="ContextMenu.Button.Background.Image" Image="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/ContextMenu_Button_Background"/>

    <Image Name="ContextMenu.Shadow.Image" Image="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/ContextMenu_Shadow"/>

    <Image Name="Overlays.Outline.Image" Image="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/ContextMenu_Outline"/>

    <Image Name="NowPlaying.Default.Branding.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Application"/>

    <Image Name="NowPlaying.Overlay.Title.Background.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/NowPlaying_Overlay_Title_Background"/>

    <Image Name="NowPlaying.Overlay.Main.Background.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/NowPlaying_Overlay_Main_Background"/>

    <Image Name="NowPlaying.Overlay.Left.Chevron.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/NowPlaying_Overlay_Left_Chevron"/>

    <Image Name="NowPlaying.Overlay.Right.Chevron.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/NowPlaying_Overlay_Right_Chevron"/>

    <Image Name="NowPlaying.Overlay.PIP.Background.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/NowPlaying_Overlay_PIP_Background"/>

    <Image Name="PIP.Border.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/PIP_Border" NineGrid="15,10,15,10"/>

    <Image Name="PIP.Shadow.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/PIP_Shadow"/>

    <Image Name="Pivot.Item.Left.Chevron.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Pivot_Left_Chevron"/><Image Name="Pivot.Item.Right.Chevron.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Pivot_Right_Chevron"/>

     

    <Image Name="SeekBar.Background.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_Background" />

    <Image Name="SeekBar.Future.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_Future" />

    <Image Name="SeekBar.Future.Cap.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_Future_Cap" />

    <Image Name="SeekBar.Past.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_Past" />

    <Image Name="SeekBar.Past.Cap.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_Past_Cap" />

    <Image Name="SeekBar.Progress.Background.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_Progress_Background" NineGrid="5,5,5,5" />

    <Image Name="SeekBar.RateState.FF1.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_RateState_FF1" />

    <Image Name="SeekBar.RateState.FF2.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_RateState_FF2" />

    <Image Name="SeekBar.RateState.FF3.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_RateState_FF3" />

    <Image Name="SeekBar.RateState.Pause.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_RateState_Pause" />

    <Image Name="SeekBar.RateState.Play.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_RateState_Play" />

    <Image Name="SeekBar.RateState.Rewind1.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_RateState_Rewind1" />

    <Image Name="SeekBar.RateState.Rewind2.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_RateState_Rewind2" />

    <Image Name="SeekBar.RateState.Rewind3.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_RateState_Rewind" />

    <Image Name="SeekBar.RateState.SlowMotion.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_RateState_SlowMotion" />

    <Image Name="SeekBar.Time.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SeekBar_Time" NineGrid="10,10,50,19" />

    <Image Name="Default.Background.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Background"/>

    <Image Name="Dark.Background.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Background_Overlay_Dark"/>

    <Image Name="Details.Background.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Details_Background"/>

    <Image Name="Video.Page.Background.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Background"/>

    <Image Name="Button.NoFocus.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Button_NoFocus" NineGrid="9,6,9,6"/>

    <Image Name="Button.Focus.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Button_Focus" NineGrid="9,6,9,6"/>

    <Image Name="Button.FocusOverlay.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Button_FocusOverlay" NineGrid="9,6,9,6"/>

    <Image Name="Button.PressedHighlight.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Button_PressedHighlight" NineGrid="9,6,9,6"/>

    <Image Name="Spinner.PlusButton.NoFocus.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SPINNER_PLUSBUTTON_NOFOCUS"/>

    <Image Name="Spinner.PlusButton.Focus.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SPINNER_PLUSBUTTON_FOCUS"/>

    <Image Name="Spinner.PlusButton.PressedHighlight.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SPINNER_PLUSBUTTON_FOCUSOVERLAY"/>

    <Image Name="Spinner.MinusButton.NoFocus.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SPINNER_MINUSBUTTON_NOFOCUS"/>

    <Image Name="Spinner.MinusButton.Focus.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SPINNER_MINUSBUTTON_FOCUS"/>

    <Image Name="Spinner.MinusButton.PressedHighlight.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SPINNER_MINUSBUTTON_FOCUSOVERLAY"/>

    <Image Name="Spinner.Textbox.Focus.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SPINNER_TEXTBOX_FOCUS"/>

    <Image Name="Spinner.Textbox.NoFocus.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SPINNER_TEXTBOX_NOFOCUS"/>

    <Image Name="Spinner.Textbox.Dormant.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/SPINNER_TEXTBOX_DORMANT"/>

    <Image Name="WaitCursor.Front.Image" Image="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/WaitCursor_Front"/>

    <Image Name="WaitCursor.Back.Image" Image="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/WaitCursor_Back"/>

    <Image Name="Metadata.HDTV.Image" Image="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Metadata_HDTV"/>

    <Image Name="Metadata.DVD.Image" Image="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Metadata_DVD"/>

    <Image Name="Metadata.BluRay.Image" Image="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Metadata_BluRay"/>

    <Image Name="Application.Image" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Application"/>

    <!-- Sounds -->

    <Sound Name="Select.Sound" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Click_Sound"/>

    <Sound Name="Click.Sound" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Click_Sound"/>

    <Sound Name="LightClick.Sound" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/LightClick_Sound"/>

    <Sound Name="Focus.Sound" Source="resx://VideoLibraryEngine.UI/VideoLibraryEngine.UI.Resources/Focus_Sound"/>

    </Mcml>


     

  •  

    My MCML crashes verifier so I don't bother with it. I loaded your snippet sans the aggregate just fine by adding a UI element above it so the markup is valid. That leads me to believe that either you are completely missing a resource (typo'd name of an image in your resx, etc) or MC can't find the resx.

    If it is the latter remember the rules;

    The resx:// protocol is designed to load resources from .resx files that are embedded into managed assemblies, with the following limitations:

    The resx:// protocol is used to load resources from a managed assembly, which must be strong-name signed and located in either %windir%\ehome or the global assembly cache (GAC).

    In the syntax resx://myassembly/myresourcefile/myresourceidentifier, the myassembly parameter does not have a file extension, so you cannot have a managed DLL and EXE with the same name and be able to load resources from both of them.

    Again, at this point I believe the issue with MC not outputting the error is due to hacking the HistoryOrientedPageSession. You probably have a LoadPage that is passing in a null sourceData object (think splash page) that is preventing MC from displaying the error.

  •  

    That's the thing tho'. I originally had everything in TVLibrary.dll and life was good. I made a copy of the tvlibrary project and did a global replace of "TVLibrary" to "VideoLibraryEngine.UI". It's still strong-named and all that. I'll check it again but this is driving me (@#)&#@()*&$(*#&!_@ crazy.

  •  
    Humor me for a minute, put the res dll in the ehome directory.
  •  
    Also, see http://discuss.mediacentersandbox.com/forums/thread/6893.aspx for the closest thing to "best practices". So, try referencing from the ehome dir as a temp validation then either use a sn reference or ILMerge. This can be validated using the sampler. Take CodeDataModelItems.mcml (notice it uses a sn for the code ref), remove the sn and the load fails. I know what you are thinking. What the f* is the point if you have to use a sn reference. If your scenario requires you don't use ILMerge you can probably load the assembly upfront as a resource or change your path before loading the UI.
  •  

    Will do. I un-GAC, build then GAC but I will try just dropping into \ehome.

  •  

    Let me clarify;

    Option 1. GAC the resource assembly AND place it in %windir%\eHome (or possibly get around this by setting Environment.CurrentDirectory)

    Option 2. Use ILMerge

    Option 3. Reference the assembly with strong name as in <Aggregate Source="resx://VideoLibraryEngine.UI,Version=1.0.0.0,Culture=neutral,PublicKeyToken=2d2721ed541e83a1/VideoLibraryEngine.UI.Resources/Animations"/>

     

    Concerning the "blue screen" it is due to hacking the HistoryOrientedPageSession. You have a LoadPage that is passing in a null sourceData object to prevent the page from being added to teh stack. Under 7MC it will not dump the markup error (there were changes to HistoryOrientedPageSession in 7MC).

  •  

    I'll give that a try. Just to be clear, I took all the markup and the models and assorted and moved them into this new project; it's not just a pure resource dll

     

    UPDATE: I tried copying the dll to ehome in addition to the GAC but it made no difference. Will try the strong name.

    I must say that this part of MCPL programming is more frustrating that troubleshooting DCOM/COM+ in a locked-down environment.

  •  

     

    AAARGGHH!!!

    I finally broke down and decided to step through MS code using the public symbols. At some point I see this error:

    Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "VideoLibraryEngine.UI.Resources.resources" was correctly embedded or linked into assembly "VideoLibraryEngine.UI" at compile time, or that all the satellite assemblies required are loadable and fully signed.

    ....I'm just going to give up on this [beep]. I spent some hours looking at satellite assemblies vs main assemblies but at this point. The MCML "platform" wins. I'll just duplicate the forsaken markup and move on to real feature work and not waste my time futzing around with this plumbing BS. Thanks for your help anyways, MSBob. Thanks for nothing, eHome.

Page 1 of 2 (24 items) 12