Skip to content

Exception has been thrown by the target of an invocation. #92

@realworld666

Description

@realworld666
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Windows.Markup.XamlParseException:  [Line: 0 Position: 0] ---> System.Windows.Markup.XamlParseException: Cannot create instance of type 'Microsoft.Phone.Maps.Controls.Map' [Line: 93 Position: 41] ---> System.Exception: A privilege that the service requires to function properly does not exist in the service account configuration. You may use the Services Microsoft Management Console (MMC) snap-in (services.msc) and the Local Security Settings MMC snap-in (secpol.msc) to view the service configuration and the account configuration. (Exception from HRESULT: 0x80070511)
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.TileHostV2_SetNativeContentProvider(TileHostV2 tileHostV2, String dllName, String activateFnName, String className)
   at Microsoft.Phone.Maps.Controls.MOSMapModel..ctor(MapCallbacks mapCallbacks, Dispatcher dispatcher)
   at Microsoft.Phone.Maps.Controls.MapCompatibility.GetLifetimeManager(MapVersion mapVersion, Control mapControl, MapCallbacks mapInteropCallbacks, Dispatcher dispatcher)
   at Microsoft.Phone.Maps.Controls.Map..ctor()
   --- End of inner exception stack trace ---
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at Cyclestreets.CustomClasses.CycleStreetsMap.InitializeComponent()
   at Cyclestreets.CustomClasses.CycleStreetsMap..ctor()
   --- End of inner exception stack trace ---
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at Cyclestreets.Pages.MainPage.InitializeComponent()
   at Cyclestreets.Pages.MainPage..ctor()
   --- End of inner exception stack trace ---
   at System.Windows.Navigation.PageResourceContentLoader.EndLoad(IAsyncResult asyncResult)
   at System.Windows.Navigation.NavigationService.ContentLoader_BeginLoad_Callback(IAsyncResult result)
   at System.Windows.Navigation.PageResourceContentLoader.BeginLoad_OnUIThread(AsyncCallback userCallback, PageResourceContentLoaderAsyncResult result)
   at System.Windows.Navigation.PageResourceContentLoader.<>c__DisplayClass4.<BeginLoad>b__0(Object args)
   at BugSense.Core.BugSenseSyncContextHandler.AsyncSynchronizationContext.<>c__DisplayClass10.<WrapCallback>b__f(Object state)
--- Inner exception of type System.Windows.Markup.XamlParseException start ---
--- Message:  [Line: 0 Position: 0] ---
System.Windows.Markup.XamlParseException:  [Line: 0 Position: 0] ---> System.Windows.Markup.XamlParseException: Cannot create instance of type 'Microsoft.Phone.Maps.Controls.Map' [Line: 93 Position: 41] ---> System.Exception: A privilege that the service requires to function properly does not exist in the service account configuration. You may use the Services Microsoft Management Console (MMC) snap-in (services.msc) and the Local Security Settings MMC snap-in (secpol.msc) to view the service configuration and the account configuration. (Exception from HRESULT: 0x80070511)
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.TileHostV2_SetNativeContentProvider(TileHostV2 tileHostV2, String dllName, String activateFnName, String className)
   at Microsoft.Phone.Maps.Controls.MOSMapModel..ctor(MapCallbacks mapCallbacks, Dispatcher dispatcher)
   at Microsoft.Phone.Maps.Controls.MapCompatibility.GetLifetimeManager(MapVersion mapVersion, Control mapControl, MapCallbacks mapInteropCallbacks, Dispatcher dispatcher)
   at Microsoft.Phone.Maps.Controls.Map..ctor()
   --- End of inner exception stack trace ---
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at Cyclestreets.CustomClasses.CycleStreetsMap.InitializeComponent()
   at Cyclestreets.CustomClasses.CycleStreetsMap..ctor()
   --- End of inner exception stack trace ---
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at Cyclestreets.Pages.MainPage.InitializeComponent()
   at Cyclestreets.Pages.MainPage..ctor()
--- End of inner exception stack trace ---
--- Inner exception of type System.Windows.Markup.XamlParseException start ---
--- Message: Cannot create instance of type 'Microsoft.Phone.Maps.Controls.Map' [Line: 93 Position: 41] ---
System.Windows.Markup.XamlParseException: Cannot create instance of type 'Microsoft.Phone.Maps.Controls.Map' [Line: 93 Position: 41] ---> System.Exception: A privilege that the service requires to function properly does not exist in the service account configuration. You may use the Services Microsoft Management Console (MMC) snap-in (services.msc) and the Local Security Settings MMC snap-in (secpol.msc) to view the service configuration and the account configuration. (Exception from HRESULT: 0x80070511)
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.TileHostV2_SetNativeContentProvider(TileHostV2 tileHostV2, String dllName, String activateFnName, String className)
   at Microsoft.Phone.Maps.Controls.MOSMapModel..ctor(MapCallbacks mapCallbacks, Dispatcher dispatcher)
   at Microsoft.Phone.Maps.Controls.MapCompatibility.GetLifetimeManager(MapVersion mapVersion, Control mapControl, MapCallbacks mapInteropCallbacks, Dispatcher dispatcher)
   at Microsoft.Phone.Maps.Controls.Map..ctor()
   --- End of inner exception stack trace ---
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at Cyclestreets.CustomClasses.CycleStreetsMap.InitializeComponent()
   at Cyclestreets.CustomClasses.CycleStreetsMap..ctor()
--- End of inner exception stack trace ---
--- Inner exception of type System.Exception start ---
--- Message: A privilege that the service requires to function properly does not exist in the service account configuration. You may use the Services Microsoft Management Console (MMC) snap-in (services.msc) and the Local Security Settings MMC snap-in (secpol.msc) to view the service configuration and the account configuration. (Exception from HRESULT: 0x80070511) ---
System.Exception: A privilege that the service requires to function properly does not exist in the service account configuration. You may use the Services Microsoft Management Console (MMC) snap-in (services.msc) and the Local Security Settings MMC snap-in (secpol.msc) to view the service configuration and the account configuration. (Exception from HRESULT: 0x80070511)
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.TileHostV2_SetNativeContentProvider(TileHostV2 tileHostV2, String dllName, String activateFnName, String className)
   at Microsoft.Phone.Maps.Controls.MOSMapModel..ctor(MapCallbacks mapCallbacks, Dispatcher dispatcher)
   at Microsoft.Phone.Maps.Controls.MapCompatibility.GetLifetimeManager(MapVersion mapVersion, Control mapControl, MapCallbacks mapInteropCallbacks, Dispatcher dispatcher)
   at Microsoft.Phone.Maps.Controls.Map..ctor()
--- End of inner exception stack trace ---

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions