Windows desktop search API in ASP.NET

  • Thread starter Thread starter Paul Yau
  • Start date Start date
P

Paul Yau

Can anyone know how to use WDS API in ASP.NET?

I copied the Win App sample to ASP.NET, but recevied the following
error:


Exception Details: System.InvalidCastException: QueryInterface for
interface Microsoft.Windows.DesktopSearch.Query.ISearchDesktop failed.
 
Can anyone know how to use WDS API in ASP.NET?

I copied the Win App sample to ASP.NET, but recevied the following
error:


Exception Details: System.InvalidCastException: QueryInterface for
interface Microsoft.Windows.DesktopSearch.Query.ISearchDesktop failed.


Have you set AspCompat=true?



Mattias
 
Thanks. It works.

Also include <identity impersonate="true"/> in the web.config
 
Hi,

I read your posts with great interest and tried integrating the SDKSampleApp
into a Windows Service (with calls to a function performing ExecuteQuery by
Remoting from a WinForms GUI) but also keep receiving the error message:

System.InvalidCastException: QueryInterface for interface
Microsoft.Windows.DesktopSearch.Query.ISearchDesktop failed.

Any thoughts would be much appreciated.

B.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top