我有一个奇怪的问题,如果我通过 Visual Studio 将我的应用程序部署为调试或发布版本,一切都运行良好。但是如果我将它发布到商店并从那里下载它,应用程序会在Launcher.LaunchFileAsync
或之后崩溃FileOpenPicker
。
例如,当我的应用程序启动照片的默认应用程序时,照片会加载到照片应用程序中并显示出来。按下 Hardwareback 按钮后,商店安装返回到windows phone home screen
,Visual Studio 部署的版本返回到我的应用程序的最后一个屏幕。同样的问题与FileOpenPicker
.
在我的应用程序的早期版本中,这是可行的,我没有更改有关此的代码。这个版本的新功能是使用了 Unity 和 Prism(之前我没有使用任何容器框架)。
我尝试使用商店 beta 应用程序对此进行调试,并将所有内容写入UnhandledExceptions
中的文件LocalStorage
,但似乎没有 UnhandledException。
有没有人遇到过同样的问题,并有一些提示或经验来找出问题?有没有可能调试我从商店下载的应用程序?
商店的例外情况:
"Frame Bild Funktion Offset
0 Windows.UI.Xaml.dll DirectUI::NavigationHistory::WritePageStackEntryToString 0x000000f9
1 Windows.UI.Xaml.dll DirectUI::NavigationHistory::GetNavigationState 0x000000d7
2 Windows.UI.Xaml.dll DirectUI::Frame::GetNavigationStateImpl 0x0000002f
3 Windows.UI.Xaml.dll DirectUI::FrameGenerated::GetNavigationState 0x00000033
4 WINDOWS.NI.WINMD 0x00403a41
5 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000c661
6 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000d191
7 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000e739
8 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000f5df
9 Microsoft.Practices.Prism.StoreApps.ni.DLL 0x0000cc81
10 Microsoft.Practices.Prism.StoreApps.Phone.ni.DLL 0x00005ed3
11 Microsoft.Practices.Prism.StoreApps.Phone.ni.DLL 0x000063f3
12 Microsoft.Practices.Prism.StoreApps.Phone.ni.DLL 0x00005723
13 WINDOWS.NI.WINMD 0x004bacc5
14 CoreClr.dll COMToCLRDispatchHelper 0x0000003d
15 CoreClr.dll GenericComCallStub 0x00000019
16 Windows.UI.Xaml.dll Microsoft::WRL::EventSource_Windows::UI::Xaml::ISuspendingEventHandler,Microsoft::WRL::InvokeModeOptions_-2_ _::DoInvoke__lambda_23bdf1386dc85166ec5d0f15e3e7ceef_ _ 0x00000047
17 Windows.UI.Xaml.dll XAML::PLM::ASTAEventSource_Windows::UI::Xaml::ISuspendingEventHandler,IInspectable,Windows::ApplicationModel::ISuspendingEventArgs_::InvokeHandlers 0x0000000d
18 Windows.UI.Xaml.dll XAML::PLM::PLMHandler::OnSuspending 0x00000095
19 twinapi.appcore.dll Microsoft::WRL::InvokeTraits_-2_::InvokeDelegates__lambda_19fa2f90eeadc306808dc8b8c64b7666_,Windows::Foundation::IEventHandler_Windows::ApplicationModel::SuspendingEventArgs *_ _ 0x00000057
20 twinapi.appcore.dll Microsoft::WRL::EventSource_Windows::Foundation::IEventHandler_Windows::ApplicationModel::SuspendingEventArgs *_,Microsoft::WRL::InvokeModeOptions_-2_ _::DoInvoke__lambda_19fa2f90eeadc306808dc8b8c64b7666_ _ 0x0000004d
21 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplicationView::SuspendResume 0x000000b3
22 twinapi.appcore.dll _lambda_806d9f75e467416c61267ff2e6219463_::operator 0x00000055
23 twinapi.appcore.dll Microsoft::WRL::Details::InvokeHelper_Microsoft::WRL::Implements_Microsoft::WRL::RuntimeClassFlags_2_,Windows::UI::Core::IDispatchedHandler,Microsoft::WRL::FtmBase,Microsoft::WRL::Details::Nil,Microsoft::WRL::Details::Nil,Microsoft::WRL::Detai 0x0000000f
24 windows.ui.dll Windows::UI::Core::CDispatcher::ProcessInvokeItem 0x000001b3
25 windows.ui.dll Windows::UI::Core::CDispatcher::WaitAndProcessMessages 0x000001dd
26 windows.ui.dll Windows::UI::Core::CDispatcher::ProcessEvents 0x00000063
27 Windows.UI.Xaml.dll CJupiterWindow::RunCoreWindowMessageLoop 0x0000003b
28 Windows.UI.Xaml.dll CJupiterControl::RunMessageLoop 0x0000001b
29 Windows.UI.Xaml.dll DirectUI::DXamlCore::RunMessageLoop 0x00000027
30 Windows.UI.Xaml.dll DirectUI::FrameworkView::Run 0x0000000f
31 twinapi.appcore.dll Windows::ApplicationModel::Core::CoreApplicationView::Run 0x00000027
32 twinapi.appcore.dll _lambda_57350c7fa2f68b1d43d8bfac2a0781a8_::operator 0x000000c7
33 shcore.dll _WrapperThreadProc 0x00000149
34 ntdll.dll RtlUserThreadStart 0x00000017"