ResourceContext.GetForCurrentView call exception

余生长醉 提交于 2019-12-11 06:29:22

问题


My users of the application have an exception when UWP app call this: Windows.ApplicationModel.Resources.Core.ResourceContext.GetForCurrentView()

Exception: 'STOWED_EXCEPTION_System.UnauthorizedAccessException'.

I am call ResourceContext.GetForCurrentView for receive "LayoutDirection".

I did not find information about this problem in MSDN and other sources.

Please, tell me, how i can get "LayoutDirection" other way or eliminate exception?

Thanks.

EDIT

$44_System::Runtime::InteropServices::WindowsRuntime::IMapViewSharedReferenceTypesStubClass.Lookup_System.__Canon,_System.__Canon_
$44_System::Runtime::InteropServices::WindowsRuntime::IMapSharedReferenceTypesRCWAdapter.Lookup_System.__Canon,_System.__Canon_$catch$0
$44_System::Runtime::InteropServices::WindowsRuntime::IMapSharedReferenceTypesRCWAdapter.TryGetValue_System.__Canon,_System.__Canon_
$44_Windows::Web::Http::Headers::HttpRequestHeaderCollection.global::System.Collections.Generic.IDictionary_System.String,System.String_.TryGetValue
App::_Activated_d__6.MoveNext

来源:https://stackoverflow.com/questions/44406783/resourcecontext-getforcurrentview-call-exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!