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.InvalidC astException: QueryInterface for
interface MyObject._MyCls failed."
When I the same thing on a test app I created using VB.NET, all works fine
and I can debug the VB6.0 component.
Any ideas on where/what to look for?
Thanks ahead
-- Ram 4 4911
Remove the inheritence from ServicedCompone nt (replace with
MarshalByRef or something similar) and you should be able to debug into it
--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Ram" <ni***@bezeqint .net> wrote in message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. . 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.InvalidC astException: QueryInterface for interface MyObject._MyCls failed." When I the same thing on a test app I created using VB.NET, all works fine and I can debug the VB6.0 component.
Any ideas on where/what to look for? Thanks ahead
-- Ram
Inheritance from ServicedCompone nt?
My object that sits in the Com+ is the VB6.0 one, not the .NET...
Thanks for the reply
-- Ram
"Tamir Khason" <ta**********@t con-NOSPAM.co.il> wrote in message
news:Os******** ******@tk2msftn gp13.phx.gbl... Remove the inheritence from ServicedCompone nt (replace with MarshalByRef or something similar) and you should be able to debug into it
-- Tamir Khason You want dot.NET? Just ask: "Please, www.dotnet.us "
"Ram" <ni***@bezeqint .net> wrote in message news:%2******** *******@TK2MSFT NGP10.phx.gbl.. . 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.InvalidC astException: QueryInterface for interface MyObject._MyCls failed." When I the same thing on a test app I created using VB.NET, all works
fine and I can debug the VB6.0 component.
Any ideas on where/what to look for? Thanks ahead
-- Ram
Do it in class (ASP.NET as far as I understand) wich calls your VB COM+
--
Tamir Khason
You want dot.NET? Just ask:
"Please, www.dotnet.us "
"Ram" <ni***@bezeqint .net> wrote in message
news:uv******** ******@TK2MSFTN GP09.phx.gbl... Inheritance from ServicedCompone nt? My object that sits in the Com+ is the VB6.0 one, not the .NET... Thanks for the reply
-- Ram "Tamir Khason" <ta**********@t con-NOSPAM.co.il> wrote in message news:Os******** ******@tk2msftn gp13.phx.gbl... Remove the inheritence from ServicedCompone nt (replace with MarshalByRef or something similar) and you should be able to debug into
it -- Tamir Khason You want dot.NET? Just ask: "Please, www.dotnet.us "
"Ram" <ni***@bezeqint .net> wrote in message news:%2******** *******@TK2MSFT NGP10.phx.gbl.. . 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.InvalidC astException: QueryInterface for interface MyObject._MyCls failed." When I the same thing on a test app I created using VB.NET, all works fine and I can debug the VB6.0 component.
Any ideas on where/what to look for? Thanks ahead
-- Ram
I added a class to my ASP.NET project that inherits from the
MarshalByRefObj ect, and on the Page_Load, I call a shared function inside
this Class, and still the same results...
Any Ideas?
--Ram
"Tamir Khason" <ta**********@t con-NOSPAM.co.il> wrote in message
news:ur******** ******@tk2msftn gp13.phx.gbl... Do it in class (ASP.NET as far as I understand) wich calls your VB COM+
-- Tamir Khason You want dot.NET? Just ask: "Please, www.dotnet.us "
"Ram" <ni***@bezeqint .net> wrote in message news:uv******** ******@TK2MSFTN GP09.phx.gbl... Inheritance from ServicedCompone nt? My object that sits in the Com+ is the VB6.0 one, not the .NET... Thanks for the reply
-- Ram "Tamir Khason" <ta**********@t con-NOSPAM.co.il> wrote in message news:Os******** ******@tk2msftn gp13.phx.gbl... Remove the inheritence from ServicedCompone nt (replace with MarshalByRef or something similar) and you should be able to debug
into it -- Tamir Khason You want dot.NET? Just ask: "Please, www.dotnet.us "
"Ram" <ni***@bezeqint .net> wrote in message news:%2******** *******@TK2MSFT NGP10.phx.gbl.. . > 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.InvalidC astException: QueryInterface for > interface MyObject._MyCls failed." > When I the same thing on a test app I created using VB.NET, all
works fine > and I can debug the VB6.0 component. > > Any ideas on where/what to look for? > Thanks ahead > > -- Ram > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tao |
last post by:
I just upgraded .NET framework to 1.1 and VS.Net to 2003 version and
tried to test it out. I created an ASP.NET project using the wizard
and tried to run
it by hitting "F5". I got an exception: "Specified cast is not valid."
The only thing i put there was a "test this." inside the form. What
might be the problem here?
Thanks in advance.
The Exception:
|
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
|
by: Mark |
last post by:
I have a COM object that calls into a C# Forms library. The library can throw exceptions and I want to handle the exceptions in COM. Adam Nathan wrote a Microsoft sponsored book titled .Net and Com the complete interoperability guide which shows examples of how to do this.
Below please find the book example code for getting extended error information from a V-Table bound .Net component. This code does not compile because the compiler gives...
|
by: adiel_g |
last post by:
Hello, I have created a activeX dll in vb6 that contains some functions
I am using in .NET. I created the dll in vb6 with:
Instancing = 5-Multiuse
MTSTransactionMode = 2-RequiresTransaction
Persistable = 0-NotPersistable
I then created a COM+ application, set the user to an admin in the COM+
settings and added the dll above as a component. Then from ASP.NET, I
added a reference to the dll created above. Everything was fine (on my
|
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.
| |
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...
|
by: Richard |
last post by:
I have created a Windows service which performs various functions
including setting variables in other application objects.
When the service runs under Local System account the functionality all
works OK, however when service runs under a user account it produces
exception errors when trying to set variables in the application
objects.
I created a .exe test harness which does the same and works OK when
run by the same user.
|
by: Ratz |
last post by:
Hello everyone! I'm new to this Forum! I've spent about 56 hours trying to solve a .NET VB Runtime error while Using a program.Ive contacted the developer of the program and he could not figure out why i'm getting these errors! SO i have come here for the Help from the GURUS!
here is one message that pops up!
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
**************...
|
by: =?Utf-8?B?a2FyaW0=?= |
last post by:
Hi,
My .Net application call a COM Class method. The signature of COm method is
object get_Item(ref object Key);
This method had defined in "NCR.APTRA.AXFS" namespace
and I Have "formList" of Type "NCR.APTRA.AXFS.IXFSDictionary"
Here i am getting an exception with the below statement
NCR.APTRA.AXFS.XFSGenericPrintForm formObj =
|
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: 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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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.
| |