471,357 Members | 1,090 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,357 software developers and data experts.

Windows desktop search API in ASP.NET

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.ISearchDeskt op failed.

Aug 2 '05 #1
3 2971
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.ISearchDeskt op failed.

Have you set AspCompat=true?

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Aug 2 '05 #2
Thanks. It works.

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

Aug 2 '05 #3
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.ISearchDeskt op failed.

Any thoughts would be much appreciated.

B.
Aug 10 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Ahmed Perlom | last post: by
5 posts views Thread by Terry Olsen | last post: by
2 posts views Thread by =?Utf-8?B?SnJ4dHVzZXIx?= | last post: by
1 post views Thread by =?Utf-8?B?U3JpbWFu?= | last post: by
3 posts views Thread by =?Utf-8?B?bGVvMg==?= | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.