Dear Arash,

You have to check 3 things when working with COM:

- Is the object registered (using regsvr32, see
http://sandrino.be/2009/03/strange-com-exception/)
- Check your CPU platform (using regsvr32, see
http://sandrino.be/2009/03/strange-com-exception/)
- Check the identity of your AppPool (try to set it as administrator
just to test)

Regards

On 26 feb, 19:53, Arash <[email protected]> wrote:
> Dear all :)
>
> I am working on a C# ASP.NET web page that references the COMcomponent"Google 
> Desktop Search Query API 1.0" (GoogleServices.DLL)
> and tries to instantiate an object from theclass
> "GoogleDesktopQuerySystemClass":
>
> using GoogleDesktopQueryAPILib;
> GoogleDesktopQuerySystemClass gc = new GoogleDesktopQuerySystemClass
> ();
>
> If this line of code was in a Windows form (desktop) application, it
> runs without any problem. If I create an ASP.NET website on "File
> System", it also runs without a problem. The strange behavior is that
> when I copy the very same ASP.NET page in my IIS folder (say, intetpub/
> wwwroot), the instantiation fails with thefollowingerror:
>
> Retrievingthe COMclassfactoryforcomponentwithCLSID{F4CADDD3-
> B30C-4D9C-97E4-AE92F1A6D340}faileddueto thefollowingerror:80040154.
>
> After a good week of research, I have come to know that this 
> vagueerror80040154is thrown whenever an object fails to instantiate, for
> whatever reason there might be. It can be anything from a DLL not
> being registered on a machine, or missing dependencies, to security
> and permission issues.
>
> I am hoping somebody knows all the tips and tricks of Windows, on one
> hand, and Google Desktop, on the other, and may be able to tell me
> what is the problem, and how possibly it can be fixed :) Any response
> would be greatly appreciated :D
>
> All the best,
> Arash

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to