Window 8 application Divide the spell on "Getting information from {AppName}"

var dataTransferManager = Windows.ApplicationModel.DataTransfer.DataTransferManager.getForCurrentView(); dataTransferManager.addEventListener("datarequested", function (e) { var request = e.request; request.data.properties.title = "Share Link Example"; request.data.properties.description = "A demonstration that shows how to add a link (URI) to share."; request.data.setUri(new Windows.Foundation.Uri("http://www.google.com")); }); 

For some reason, if I click on the Share charm, it just hangs "Getting information from GodVine" (GodVine is the name of my application). It worked, then suddenly stopped working. Am I doing something wrong?

+6
source share
2 answers

I suspect that you stopped the debugging session at the breakpoint inside the datarequested handler. If you stop the debugging session inside the datarequested handler, an error appears that disrupts the shared broker. The β€œeasiest” way to reset is to use the task manager to stop and restart explorer.exe.

+13
source

on an elevated command prompt - taskkill also works.

 - taskkill /F /IM explorer.exe - start explorer.exe 
0
source

All Articles