我一個在徹底的絕望......拒絕訪問(HRESULT 0X80070005)在新ControlChannelTrigger(WinRT的)
這裏是我的代碼:
ControlChannelTrigger theChannel = new ControlChannelTrigger("channelId", 15, ControlChannelTriggerResourceType.RequestHardwareSlot);
總是拋出UnauthorizedAccessException(HRESULT 0X80070005)。
這裏有一個明顯的我用
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
<Identity Name="cf45d5c8-2936-4d1f-9075-51a87ceb60ba" Publisher="CN=snuk182" Version="1.0.0.0" />
<Properties>
<DisplayName>Applic</DisplayName>
<PublisherDisplayName>snuk182</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Prerequisites>
<OSMinVersion>6.2.0</OSMinVersion>
<OSMaxVersionTested>6.2.0</OSMaxVersionTested>
</Prerequisites>
<Resources>
<Resource Language="x-generate" />
</Resources>
<Applications>
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="Applic.App">
<VisualElements DisplayName="Applic" Logo="Assets\Logo.png" SmallLogo="Assets\SmallLogo.png" Description="Applic" ForegroundText="light" BackgroundColor="#464646" ToastCapable="true">
<LockScreen Notification="badgeAndTileText" BadgeLogo="ImageResources\badge.png" />
<DefaultTile ShowName="allLogos" WideLogo="ImageResources\widelogo.png" />
<SplashScreen Image="Assets\SplashScreen.png" />
</VisualElements>
<Extensions>
<Extension Category="windows.backgroundTasks" Executable="$targetnametoken$.exe" EntryPoint="Applic.BackgroundTask">
<BackgroundTasks>
<Task Type="controlChannel" />
</BackgroundTasks>
</Extension>
</Extensions>
</Application>
</Applications>
<Capabilities>
<Capability Name="removableStorage" />
<Capability Name="internetClient" />
</Capabilities>
</Package>
沒有發現任何答案在這裏或網頁。不知道發生了什麼事...
您是否嘗試過加入本地網絡的能力? – 2012-07-20 17:16:09
嘗試沒有成功下一變化: <能力名稱= 「internetClientServer」/> <能力名稱= 「privateNetworkClientServer」/> <能力名稱= 「removableStorage」/> <能力名稱= 「internetClient」/> 還沒有找到任何「本地」網絡上限。 – snuk182 2012-07-21 13:24:18