I've an appartment threaded VB6 COM object thats been configured in COM+ to
run under a specific domain user.
I've tried instantiating the object in my VB.NET class and I get the
following error....
------------------------------------------------------------------------
----------------------------
A first chance exception of type 'System.Invalid CastException' occurred
in gbasvr07.dll
Additional information: QueryInterface for interface ALFA._Sage failed.
------------------------------------------------------------------------
----------------------------
If I continue, I eventually get the message (in the browser)
------------------------------------------------------------------------
----------------------------
Server Error in '/' Application.
QueryInterface for interface ALFA._Sage failed.
Description: An unhandled exception occurred during the execution of the
current
web request. Please review the stack trace for more information about
the error and
where it originated in the code.
Exception Details: System.InvalidC astException: QueryInterface for
interface
ALFA._Sage failed.
------------------------------------------------------------------------
----------------------------
If I try to catch the exception, I get "Thread was being aborted" as the
exception message.
I've been searching for answers and it seems to point to the threading, but
all options I've seen state that aspcompt must be set to true, which it is.
Does anyone have any idea why I'm getting this? BTW - it worked the first
time I ran the page!
regards,
Bruce 2 1153
The idea I am getting is that you treat something as InProc in your
component's initialisation code that blows when the component is
instantiated as local or remote. If the component has dual interfaces you
may get away with it when it is instantiated as an InProc server using the
VTable interface. Check your component's startup code (debug it or set some
MessageBox statements) to see where it blows. Then ask yourself "where is
this variable/data located?" You may be casting an interface to some value
type.
"Bruce Whitehouse" <sk*******@yaho o.co.uk> wrote in message
news:Oh******** *****@TK2MSFTNG P11.phx.gbl... I've an appartment threaded VB6 COM object thats been configured in COM+
to run under a specific domain user.
I've tried instantiating the object in my VB.NET class and I get the following error.... ----------------------------------------------------------------------
-- ---------------------------- A first chance exception of type 'System.Invalid CastException'
occurred in gbasvr07.dll
Additional information: QueryInterface for interface ALFA._Sage
failed. ----------------------------------------------------------------------
-- ----------------------------
If I continue, I eventually get the message (in the browser)
----------------------------------------------------------------------
-- ---------------------------- Server Error in '/' Application. QueryInterface for interface ALFA._Sage failed. Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidC astException: QueryInterface for interface ALFA._Sage failed.
----------------------------------------------------------------------
-- ----------------------------
If I try to catch the exception, I get "Thread was being aborted" as the exception message.
I've been searching for answers and it seems to point to the threading,
but all options I've seen state that aspcompt must be set to true, which it
is. Does anyone have any idea why I'm getting this? BTW - it worked the
first time I ran the page! regards, Bruce
this turned out to be a permissions problem
....? these error messages are almost as helpful as Oracles! :-)
Bruce This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dw |
last post by:
Hello all, I'm having a dickens of a time calling a stored procedure on a
connection. Every time I do, it generates an error "Arguments are of the
wrong type, are out of acceptable range, or are in conflict with one
another." I've run the same stored procedure with the same exact list of
arguments in Query Analyser in SQL Server, and it works. The page has the
adovbs constants. Note that uspGetProperties is a stored procedure in SQL...
|
by: Michael Winter |
last post by:
In an attempt to answer another question in this group, I've had to resort
to calling the DOM method, Node.removeChild(), using a reference to it
(long story...). That is, passing Node.removeChild.
In Opera (7.23/Win), the call appears to do nothing - the node remains -
but no errors are shown. In Netscape (7.0/Win), an exception results.
On IE (6.0/Win), the node is removed.
Strangly, if I pass another function reference, say...
|
by: JKop |
last post by:
Anyone know a way of calling a constructor?
At first, I was going to post the following code and ask if it was fully
portable and all, but then it wouldn't compile.
#include <cstdlib>
class AnyClass {};
|
by: johny smith |
last post by:
I am trying to figure out a way to print the address of what called a
certain function once inside the function.
I am assuming that this information is on the stack somewhere. But can
someone give me some
advice? I don't know where to go to look this information up.
Do I need to access the stack, and hence do some kind of inline assembly
code to get the calling address?
|
by: Jack |
last post by:
Hi,
I am trying to run an example code from a book. However I am getting the
following error message:
Number: -2147217900
Description: Syntax error or access violation
Source: Microsoft OLE DB Provider for SQL Server
SQLState: 42000
| |
by: Rob Cowie |
last post by:
Hi all,
Is there a simple way to call every method of an object from its
__init__()?
For example, given the following class, what would I replace the
comment line in __init__() with to result in both methods being called?
I understand that I could just call each method by name but I'm looking
for a mechanism to avoid this.
|
by: Newbie Coder |
last post by:
Hello all
I have 3 functions in a javacrip file (MyScript.js), which is added to an
ASP.NET 2.0 project
1) no right-click
2) no select text (copy...)
3) History.Back()'
How do I call those 3 functions in all of my pages?
|
by: Andreas Reiff |
last post by:
Hey!
I have a managed c++ app (actually, the app is mixed managed/unmanaged, but
this happens in the managed part) that dynamically generates some program in
c# (with CSharpCodeProvider).
The problem now is that somehow I get runtime errors when trying to pass a
function (via delegates) into the c# code in order to make c# call back that
function. The message box says: "An unhandled exeption of type
'System.ArgumentException' occurred...
|
by: Dan |
last post by:
Hi All,
I've got a problem with my C++ application that calls a Java class
that I've built with GCJ, I can't run it because I get errors:
multiple definition of `atexit'
first defined here
multiple definition of `_onexit'
first defined here
multiple definition of `__do_sjlj_init'
|
by: Derek Hart |
last post by:
I am unclear about what all the requirements are to call a simple vb.net
application, installed in the GAC, from COM (such as writing vba in Word to
call the dotnet dll).
I believe I have installed the dll in the GAC. It is in there and has a
public token. I did not create a key-value pair. I believe it is strong
named, as it shows up in the GAC.
How do I browse the objects of it? I would like to call it late bound, but
the errors I...
|
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...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
|
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...
|
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
| |
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |