Re: QueryInterface for interface xxx.yyy failed

From: Idael Cardoso (nospam.yetiicb_at_hotmail.com)
Date: 04/24/04


Date: Sat, 24 Apr 2004 13:48:30 +0200

That error could happen when there is a Threading problem. Look at AspCompat
attribute of the @Page directive, maybe can help.

Idael.

"Chris" <chrisb@REMOVE_SPAM_CAPSpapex.com.REMOVE_THESE_CAPS> wrote in
message news:0EF08A0F-DD5D-43D0-839E-2E14BE81F7D2@microsoft.com...
> Hi everyone,
>
> We are trying to access a remote COM object in our asp.net application and
are running into difficulties. We keep receiving the error: QueryInterface
for interface "dll.className" failed. This error occurred when we deployed
the application to our test servers. During our development cycle, we
performed the following steps to work around this problem:
>
> 1. Exported the COM object and installed it on the client.
> 2. Imported the COM object into our project using VS.NET studio 2002.
Studio automatically created the RCW wrapper called "interop.COM".
> 3. Change the account that the Aspnet_wp.exe process runs under to the
System account in the <processModel> configuration section of the
application host's Machine.config file.
>
> This seemed to correct the problem. All calls to COM object through the
RCW wrapper worked successfully, and development continued.
>
> Now, however, upon deploying the application to our test server which has
a different operating system, and runs under a different network domain, we
are again receiving this error. We have tried the following steps to solve
the problem (or to get the application to just work):
>
> 1. Attempted to impersonate an domain administrator account that has full
security and access privleges.
> 2. Granted both the ASP.NET and Administrators accounts to "act as part of
the operating system".
> 3. Attempted to give full trust the the RCW interop assembly.
>
> None of these steps have solved the problem. If anyone knows what we are
missing here, or can point us in the right direction, please let me know.
>
> Thanks,
>
> Chris...



Relevant Pages

  • Re: Windows 2000 User Settings
    ... Administrators can perform any and all functions supported by the operating system. ... Any right that the administrator does not have by default, ... Install the operating system and components. ... to use a "personal" computer with any less than a Power User account. ...
    (microsoft.public.win2000.general)
  • Re: Virus detected in deleted user account
    ... Where are the files located as in the path - under documents and settings?? ... events reference the mystery user account. ... If the operating system was not ... is the scan of a 'deleted user account'. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Password is TOO long
    ... caplocks weren't on etc and the login failed each time. ... tried Jan's (operating system saving) tip, ... The computer manufacture said that re-installing ... My Media Center 2005 computer came with one account labeled ...
    (microsoft.public.windows.mediacenter)
  • Re: SQL 2000 installation advice needed
    ... >> If you mean with that the local administrator account, ... >> Security is not very important to me. ... >>> Ghost backups of the operating system, ... >>> can restore the operating system in a few minutes. ...
    (microsoft.public.sqlserver.setup)

Loading