Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / April 2004

Tip: Looking for answers? Try searching our database.

QueryInterface for interface xxx.yyy failed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris - 20 Apr 2004 14:21 GMT
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
Idael Cardoso - 24 Apr 2004 12:48 GMT
That error could happen when there is a Threading problem. Look at AspCompat
attribute of the @Page directive, maybe can help.

Idael.

> 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".
[quoted text clipped - 5 lines]
>
> Chris...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.