"Search Pane" element not found exception in win 8 app

5

I am trying to develop a win 8 app in visual studio 2012 which implements search contract. To enable search functionality I have added "search pane" element. But while running the app I am getting an exception

"Element not found. (Exception from HRESULT: 0x80070490)"

for the code -

this.searchPane = SearchPane.GetForCurrentView()

can anyone tell me what is problem and solution for this.

c#
asked on Stack Overflow Oct 5, 2012 by Mahadev Swamy • edited Jul 3, 2013 by Joe Slater

1 Answer

0

Such problems usually occur from XAML markups. Make sure everything is ok in your page markup files, that search pane element in described in appropriate way, without redundant or missing attributes.

answered on Stack Overflow Oct 5, 2012 by george.zakaryan

User contributions licensed under CC BY-SA 3.0