I'm getting the error:
0x80070005 - JavaScript runtime error: Access is denied.
on
// Scenario 1 : Support receiving a search query while running as the main application.
Windows.ApplicationModel.Search.SearchPane.getForCurrentView().onquerysubmitted = function (eventObject) {
WinJS.log && WinJS.log("User submitted the search query: " + eventObject.queryText, "sample", "status");
};
I've practically cut and pasted the exact default.js file from "SearchContractSample" project and yet I still get the error. Other searches talk about a toast option that I have no idea what is and also talk about it running in local machine mode,
but that does not work for me either.
Any ideas?
thanks
Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider