Debugging Old VB COM objects from ASP.NET
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngdebug' list.


Maxim V. Karpov
-- Moved from [aspngcs] to [aspngdebug] by Charles M. Carroll <Click here to reveal e-mail address> --

Hi Guys,
I was wondering if anyone was successful in setting up server to be
able to Debug from ASP.NET page into VB COM DLL. I tried all the tricks
I knew and I am still not successful with the process.

Thanks, Maxim

Reply to this message...
 
    
Ries Vriend
Hi Maxim,

The only way I know of is to use late binding. So, declare all
references to your com object 'as object' in VB.NET. You can then start
VB6, set breakpoints in the COM component and run the .net app.

To ease the pain a little bit, I'm using conditional compilation to
either declare the variables As Object or as the early bound type, e.g.

#if debugvb6 then
    dim myvbobject as object
#else
    dim myvbobject as MyClass
#end if

set myvbobject = createobject("mylib.myclass")

A drawback of this approach is that you cannot use types/structs defined
in the VB6 component in combination with late binding.

Ries Vriend
Development Expertise BV
www.devexp.com

-----Original Message-----
From: Maxim V. Karpov [mailto:Click here to reveal e-mail address]
Sent: donderdag 28 maart 2002 6:24
To: aspngdebug
Subject: [aspngdebug] Debugging Old VB COM objects from ASP.NET

-- Moved from [aspngcs] to [aspngdebug] by Charles M. Carroll
<Click here to reveal e-mail address> --

Hi Guys,
I was wondering if anyone was successful in setting up server to be
able to Debug from ASP.NET page into VB COM DLL. I tried all the tricks
I knew and I am still not successful with the process.

Thanks, Maxim

| [aspngdebug] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngdebug.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
    
Maxim V. Karpov
Ries,
What I found that you can declare the Object as referenced type you
just need to make sure that you have Symbolic Debugging enable. My issue
it refer to the Permission settings that I need to set when I am
debugging from ASPX --- to --- VB6.EXE. It does not want to pass through
permissions on DCOM server. I tried to use the fix with registry then I
got completely different Exception. Do you have any idea?

Thanks, Maxim

-----Original Message-----
From: Ries Vriend [mailto:Click here to reveal e-mail address]
Sent: Thursday, March 28, 2002 7:05 AM
To: aspngdebug
Subject: [aspngdebug] RE: Debugging Old VB COM objects from ASP.NET

Hi Maxim,

The only way I know of is to use late binding. So, declare all
references to your com object 'as object' in VB.NET. You can then start
VB6, set breakpoints in the COM component and run the .net app.

To ease the pain a little bit, I'm using conditional compilation to
either declare the variables As Object or as the early bound type, e.g.

#if debugvb6 then
    dim myvbobject as object
#else
    dim myvbobject as MyClass
#end if

set myvbobject = createobject("mylib.myclass")

A drawback of this approach is that you cannot use types/structs defined
in the VB6 component in combination with late binding.

Ries Vriend
Development Expertise BV
www.devexp.com

-----Original Message-----
From: Maxim V. Karpov [mailto:Click here to reveal e-mail address]
Sent: donderdag 28 maart 2002 6:24
To: aspngdebug
Subject: [aspngdebug] Debugging Old VB COM objects from ASP.NET

-- Moved from [aspngcs] to [aspngdebug] by Charles M. Carroll
<Click here to reveal e-mail address> --

Hi Guys,
I was wondering if anyone was successful in setting up server to be
able to Debug from ASP.NET page into VB COM DLL. I tried all the tricks
I knew and I am still not successful with the process.

Thanks, Maxim

| [aspngdebug] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngdebug.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngdebug] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngdebug.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com