Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

Commented Issue: WinRT: Specifying RequestedTheme in XAML crashes unit test runner [276]

$
0
0
If the RequestedTheme is specified inside markup of App.xaml, then MSTest test projects fail to run with the following errors:

Unhandled exception at 0x0FF66C57 (Windows.UI.Xaml.dll) in vstest.executionengine.appcontainer.x86.exe: 0xC000027B: An application-internal exception has occurred (parameters: 0x058ADAF8, 0x00000001).

*Output window:*
Exception has been thrown by the target of an invocation.

*Windows event viewer:*
Activation of the app a1864528-865b-4c7b-bf66-b13cba69fbe6_xczrxaf31gmnm!vstest.executionengine.x86.App for the Windows.Launch contract failed with error: The remote procedure call failed..

*Stack trace:*
> combase.dll!RoFailFastWithErrorContextInternal(HRESULT hrError=0x8000ffff, unsigned long cStowedExceptions=1, _STOWED_EXCEPTION_INFORMATION_V1 * * aStowedExceptionPointers=0x058adaf8) Line 853 C++
Windows.UI.Xaml.dll!DirectUI::ErrorHelper::ProcessUnhandledErrorForUserCode(long) Unknown
Windows.UI.Xaml.dll!DirectUI::DXamlCore::EnsureCoreApplicationInitialized(void) Unknown
Windows.UI.Xaml.dll!DirectUI::FrameworkView::Initialize(struct Windows::ApplicationModel::Core::ICoreApplicationView *) Unknown
twinapi.dll!5d8cb64f() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for twinapi.dll]
twinapi.dll!5d8cbb23() Unknown
twinapi.dll!5d8cb88e() Unknown
SHCore.dll!748a59e1() Unknown
kernel32.dll!76b08543() Unknown
ntdll.dll!7743ac69() Unknown
ntdll.dll!7743ac3c() Unknown


This occurs using both Visual Studio 2012 test runner and Resharper.

This does not happen if:
- The application is declared as an <Application> (rather than CaliburnApplication)
- The RequestedTheme is set inside the code-behind constructor

Replicated in NuGet package version 1.4 and latest source from 14 Jan 2013 (ad5acda9d1c3).

Repro attached
Comments: From my investigation this doesn't appear to be a problem directly with Caliburn Micro but that the Unit Test Framework doesn't like any custom Application object used in conjunction with a Light RequestTheme .

Viewing all articles
Browse latest Browse all 1760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>