473,385 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

InvalidCastException: 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.InvalidCastException: QueryInterface for interface
ESELLERATECONTROL350Lib.IeSeller failed.

Server stack trace:
at ESELLERATECONTROL350Lib.eSellerClass.ValidateSeria lNumber(String
inSerialNumber, String inNameBasedKey, String inExtraDataKey, String
inPublisherKey)
at bw.ValidateLicense(String serialNumber)
...
at
System.Runtime.Remoting.Messaging.StackBuilderSink .PrivateProcessMessage(MethodBase
mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext,
Object[]& outArgs)
at
System.Runtime.Remoting.Messaging.StackBuilderSink .AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvok eHelper(Message
reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invo ke(Object NotUsed,
MessageData& msgData)
at a.EndInvoke(IAsyncResult result)
at bf.a(IAsyncResult ))
a at offset 155 in file:line:column <filename unknown>:0:0
a at offset 136 in file:line:column <filename unknown>:0:0
a at offset 133 in file:line:column <filename unknown>:0:0
InternalInvoke at offset 0 in file:line:column <filename unknown>:0:0
InternalInvoke at offset 318 in file:line:column <filename unknown>:0:0
DynamicInvokeImpl at offset 52 in file:line:column <filename unknown>:0:0
DynamicInvokeImpl at offset 62 in file:line:column <filename unknown>:0:0
InvokeMarshaledCallbacks at offset 511 in file:line:column <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 1222

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

Similar topics

0
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,...
0
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...
7
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...
4
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...
0
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...
2
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: ...
5
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...
0
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...
9
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.