windows-10

How to launch my app via NFC tag?

亡梦爱人 提交于 2019-11-29 15:57:13
问题 I'm currently working on porting an app to UWP. The app has a page with a "Write to NFC" button. After the user taps it, it waits for an NFC tag and writes a LaunchApp:WriteTag binary message. What worked fine under WP8.1, doesn't work at all under Windows 10 UWP: var proximityDevice = Windows.Networking.Proximity.ProximityDevice.GetDefault(); if (proximityDevice != null) { var launchArgs = "user=default"; var appId = "App"; var appName = Windows.ApplicationModel.Package.Current.Id.FamilyName

ContactManager.RequestStoreAsync() throws System.UnauthorizedAccessException

非 Y 不嫁゛ 提交于 2019-11-29 15:47:50
I am trying to use the ContactManager class in the Windows 10 Universal apps API. I am trying to do this on a Windows 10 Desktop machine. I am receiving an exception, "System.UnauthorizedAccessException" when trying to request a list of contacts using ContactManager.RequestStoreAsync(). In previous versions, this function only worked on Windows Phone devices. The Microsoft documentation just says it requires a Windows 10 Device family now, but I'm not having any luck. using Windows.ApplicationModel.Contacts; public async Task<List<String>> getContacts() { List<String> listResults = new List

How to install D3D11 SDK Layers for Windows 10 offline

烈酒焚心 提交于 2019-11-29 15:42:51
问题 I got the following error when I was debugging my D3D application in VS2015. D3D11CreateDevice: Flags (0x2) were specified which require the D3D11 SDK Layers for Windows 10, but they are not present on the system. These flags must be removed, or the Windows 10 SDK must be installed. Flags include: D3D11_CREATE_DEVICE_DEBUG I know I need to enable Graphics Tools in Win10 or run Dism /online /add-capability /capabilityname:Tools.Graphics.DirectX~~~~0.0.1.0 to enable it. But the machine I am

CouchDB fails to start after applying Windows 10 Creators Update

谁说我不能喝 提交于 2019-11-29 14:51:19
I'm running CouchDB 2.0 on Windows for development purposes. After applying the Windows 10 Creators Update, the CouchDB service doesn't start anymore. When I try to start it manually, I get a generic "unable to start service" error message. CouchDB 2.0 on Windows uses the Non-Sucking Service Manager (NSSM) to run itself as service. Apparently, NSSM has problems after the creators update has been applied: 2017-04-26: Users of Windows 10 Creators Update should use prelease build 2.2.4-101 to avoid an issue with services failing to start. Thus, the problem can be fixed by using the mentioned

Windows 10 Mobile Error: DEP6200

拜拜、爱过 提交于 2019-11-29 14:24:43
I am trying to deploy a Windows 10 app to a Lumia 635 running 10.0.10586.11 and I get this error: Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Connecting to the device 'DEVICE GUID'.': SEHException - External component has thrown an exception. Error : DEP6200 : Bootstrapping 'Device' failed. Device cannot be found. The data necessary to complete this operation is not yet available. Unlike most, I am capable of deploying to an Emulator, just not the physical device. Based on this question: Error : DEP6200 : Bootstrapping 'Device' failed. Device cannot be

How to set Content Security Policy in Windows Universal apps

落爺英雄遲暮 提交于 2019-11-29 14:05:07
I don't even know if that's what I need, but after several days of this MSDN Forum post with no answers at all I thought I'd give a shot in SO. My problem : I have many Windows 8.1 and Windows Phone 8.1 HTML/Javascripts apps that have a little <script> sentence in the <head> of every html page. I started migrating my apps to Windows 10 as a single Universal Windows app but I get the following error: CSP14312: Resource violated directive 'script-src ms-appx: data: 'unsafe-eval'' in Host Defined Policy: inline script. Resource will be blocked and of course, nothing gets executed... am I missing

FromBluetoothAddressAsync never returns on Windows 10 Creators Update in WPF Application

混江龙づ霸主 提交于 2019-11-29 14:01:47
I upgraded to Windows 10, version 1703 build 15063 (Creators Update) official release. When I run the following code in a WPF desktop application, BluetoothLEDevice.FromBluetoothAddressAsync never returns. This code worked on fine before my Windows 10 update (i.e. the previous 1607 build 14393). This code also works fine if it is running as a UWP in the new Win 10 1703. BluetoothLEAdvertisementWatcher BleWatcher = null; private void Button_Click(object sender, RoutedEventArgs e) { BleWatcher = new BluetoothLEAdvertisementWatcher { ScanningMode = BluetoothLEScanningMode.Active }; BleWatcher

Maven build and maven-failsafe-plugin - The forked VM terminated without properly saying goodbye

大兔子大兔子 提交于 2019-11-29 13:31:46
I use Docker and https://github.com/fabric8io/docker-maven-plugin for my integration tests. On my Windows 10 ( after updating to Windows 10 1709 ) machine I faced the following error with my Maven 3.5.0 build: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.20.1:verify (default) on project api: There are test failures. [ERROR] [ERROR] Please refer to D:\Projects\example\api\target\failsafe-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream. [ERROR]

Will Microsoft Edge and Windows 10 support HTA?

久未见 提交于 2019-11-29 13:30:15
I'm working on an HTML Application for Windows 8.1, and, as our office soon will use Windows 10, I'm wondering if MS Edge and Windows 10 still support HTA. No. However, you can still run legacy HTAs in IE9 mode. For new development using web technologies, Microsoft is recommending a switch to Windows Store Apps. Here's what Microsoft had to say about HTA support in IE10 and later: The Internet Explorer team is increasingly focused on standards compliance, and markup-based behaviors are not part of modern web standards. In IE10 mode support for markup based behaviors has been removed, and this

Trigger volume buttons to take picture UWP

不想你离开。 提交于 2019-11-29 12:37:54
I try to use a selfie stick, but as windows 10 camera app does not provide the possibility to take picture and record video with it, I was wondering if there is a possibility to trigger and handle when the user presses the volume up and/or down button inside an UWP app Has anyone be able to achieve this? I was wondering if there is a possibility to trigger and handle when the user presses the volume up and/or down button inside an UWP app No, hardware Volume controls need special permission for development, if you are an ordinary developer, it is not possible to access these hardware controls,