locked
Problems adding search RRS feed

  • Question

  • 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

    Wednesday, June 27, 2012 3:50 PM

Answers

  • I looked closer at the manifiest files directly and found I needed to add this to the manifest file (not sure where it shows up in the gui or even if it does.)

    </VisualElements>

          <Extensions>

            <Extension Category="windows.search" />

          </Extensions>

          

        </Application>

      </Applications>


    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider

    • Marked as answer by Peter Kellner Wednesday, June 27, 2012 5:32 PM
    Wednesday, June 27, 2012 5:32 PM

All replies

  • I looked closer at the manifiest files directly and found I needed to add this to the manifest file (not sure where it shows up in the gui or even if it does.)

    </VisualElements>

          <Extensions>

            <Extension Category="windows.search" />

          </Extensions>

          

        </Application>

      </Applications>


    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider

    • Marked as answer by Peter Kellner Wednesday, June 27, 2012 5:32 PM
    Wednesday, June 27, 2012 5:32 PM
  • You should be able to manage that through the manifest designer.  On the 'Declarations' tab, there is a drop down and you can select to add 'search'.

    This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, June 27, 2012 7:19 PM