locked
SearchPane element not found exception

    Question

  • Hi,

    I'm writing an app and I want to add search options to it.

    in app.xaml.cs I added this code:

    SearchPane.GetForCurrentView().SuggestionsRequested += App_SuggestionsRequested;

    when I run my app - I get an exception on that row:

    An exception of type 'System.Exception' occurred in SmartAlbum.exe but was not handled in user code
    
    Additional information: Element not found. (Exception from HRESULT: 0x80070490)

    Any idea how to solve this issue?

    thanks,


    Spaarvap

    Tuesday, July 15, 2014 1:04 PM

Answers

All replies

  • If you can post your app to OneDrive and share the link to it here, I'll take a look at it.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Tuesday, July 15, 2014 7:18 PM
    Moderator
  • Are you using the SearchBox too?

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Wednesday, July 16, 2014 7:35 AM
  • my code is too complex to post.

    Spaarvap

    Wednesday, July 16, 2014 9:20 AM
  • I guess not - what is a search box?

    Spaarvap

    Wednesday, July 16, 2014 9:20 AM
  • SearchBox xaml control

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Wednesday, July 16, 2014 9:45 AM
  • no.

    should I?


    Spaarvap

    Wednesday, July 16, 2014 10:15 AM
  • no .. if you did could be part of the problem. Did you enabled search in your manifest file?

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Wednesday, July 16, 2014 10:50 AM
  • I did.

    it seems to work now - I don't know what the problem was.


    Spaarvap

    Wednesday, July 16, 2014 12:51 PM