473,769 Members | 3,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

InvalidCastExce ption: QueryInterface

Hi,

Our app uses a 3rd party dll with ActiveX controls that is installed and
registered by the setup.
We have a customer who has installed on Win2k and is getting this exception
when the app tries to use the dll (stack trace below). Other features
of our app work correctly. We have not been able to repro the issue on our
own
Win2k test box. Below the stack trace are some notes about things we tried and
the results. Any help will be appreciated!!
Stack trace
------------
01/04/05 13:06:11.081 [Error] Caught an unhandled exception.
(System.Invalid CastException: QueryInterface for interface
ESELLERATECONTR OL350Lib.IeSell er failed.

Server stack trace:
at ESELLERATECONTR OL350Lib.eSelle rClass.Validate SerialNumber(St ring
inSerialNumber, String inNameBasedKey, String inExtraDataKey, String
inPublisherKey)
at bw.ValidateLice nse(String serialNumber)
...
at
System.Runtime. Remoting.Messag ing.StackBuilde rSink.PrivatePr ocessMessage(Me thodBase
mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInConte xt,
Object[]& outArgs)
at
System.Runtime. Remoting.Messag ing.StackBuilde rSink.AsyncProc essMessage(IMes sage msg, IMessageSink replySink)

Exception rethrown at [0]:
at System.Runtime. Remoting.Proxie s.RealProxy.End InvokeHelper(Me ssage
reqMsg, Boolean bProxyCase)
at System.Runtime. Remoting.Proxie s.RemotingProxy .Invoke(Object NotUsed,
MessageData& msgData)
at a.EndInvoke(IAs yncResult result)
at bf.a(IAsyncResu lt ))
a at offset 155 in file:line:colum n <filename unknown>:0:0
a at offset 136 in file:line:colum n <filename unknown>:0:0
a at offset 133 in file:line:colum n <filename unknown>:0:0
InternalInvoke at offset 0 in file:line:colum n <filename unknown>:0:0
InternalInvoke at offset 318 in file:line:colum n <filename unknown>:0:0
DynamicInvokeIm pl at offset 52 in file:line:colum n <filename unknown>:0:0
DynamicInvokeIm pl at offset 62 in file:line:colum n <filename unknown>:0:0
InvokeMarshaled Callbacks at offset 511 in file:line:colum n <filename
unknown>:0:0
...

What we tried (no repro on our test box):
- had user disable firewall (dll method requires internet) and virus
scanning. No effect.
- installing with virus scanners running has not been a problem, that we
have observed. Are there settings that prevent ActiveX controls from being
registered?
- delete (rename) the interop dll. Our app fails to run at all. Different
error.
- delete (rename) either or both of the 3rd party dlls. Installer
automagically reinstalls them.
- unregister the dlls. App fails to run, different error message.
Jul 21 '05 #1
0 1255

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1159
by: Ian Adams | last post by:
How do I do this in Python? hres = pObj->QueryInterface(IID_MyIntf1, (void **) &piMyIntf1); piMyIntf1->QueryInterface(IID_MyIntf2, (void **) &piMyIntf2); piMyIntf2->SomeMthd(args); Also, how do I call/manage smart pointer interfaces?
0
417
by: Jason | last post by:
I'm writing a small console app in .NET that needs to reference a 3rd party dll. I wrote the app by adding a reference to the 3rd party dll in my project and my code builds and executes perfectly. However, when I made a setup file and installed it on another box, I get: System.InvalidCastException: QueryInterface for interface...Failed. when the console app tires to reference the dll. I can see that the
7
4713
by: Julien | last post by:
Hi !!! I hav a problem when I try to initialize my workbook (opening or creation) in my windows form... I got the Exception 'System.InvalidCastException' : QueryInterface for interface Excel._Application failed I tried to change de CultureInfo but it doesn't work better.
4
4923
by: Ram | last post by:
I am running a test web site on my own Win2k professional computer. I have a VB6 COM component (running on COM+) on a seperate application runnint as "Server". When running an ASP.NET page calling this component, it works fine, but When I try and debug the Com+ process using the VB6.0 IDE, I get the following error: "Exception Details: System.InvalidCastException: QueryInterface for interface MyObject._MyCls failed." When I the same...
0
1111
by: Michal | last post by:
Hi. I've been searching all over the internet, and I didn't find solution of my problem :( I hope someone can help me here... The problem is: Im writing a library in C# (COM Library). This library will be used by an application, which is wrote in VB6. I will call it "MainApp".
2
4727
by: Michael | last post by:
Hello all and thanks in advance, I'm running a vb.net program and part of it copies files from one server to another. It generally works fine but once in a while I get this error: System.InvalidCastException: QueryInterface for interface Scripting.IFileSystem3 failed.
5
1486
by: Geoff Kell (Lockdesign Ltd) | last post by:
I have just started using VB.Net and I am developing a class to provide data to clients from an IBM-MQ queue. I have developed a class which connects to the queue and issues a read. When a message comes in an event is raised back to the client containing (at the moment) only the message id. This all works fine but the MQ read call blocks and prevents other processing. To overcome this I have created the object and then start the...
0
304
by: lynng_stottlerhenke | last post by:
Hi, Our app uses a 3rd party dll with ActiveX controls that is installed and registered by the setup. We have a customer who has installed on Win2k and is getting this exception when the app tries to use the dll (stack trace below). Other features of our app work correctly. We have not been able to repro the issue on our own Win2k test box. Below the stack trace are some notes about things we tried and the results. Any help will be...
9
2149
by: =?Utf-8?B?RCBKYXJ2aWU=?= | last post by:
A VB.NET 2003 application accesses a custom VB 6 DLL. It has run successfully several months, and has been modified without problem a few times during that period. Recently another set of changes were made to both the VB.NET code and the DLL. The new version was successfully installed on our production server, and ran without problem for 2 weeks until a scheduled reboot of the server occurred. Since the reboot, the application always fails...
0
9586
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10210
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10043
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9990
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.