Click here to Skip to main content
15,887,746 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionLaunch application within a window in my application Pin
Joseph Weisenburger4-Mar-08 7:01
Joseph Weisenburger4-Mar-08 7:01 
GeneralRe: Launch application within a window in my application Pin
led mike5-Mar-08 4:48
led mike5-Mar-08 4:48 
GeneralRe: Launch application within a window in my application Pin
Pete O'Hanlon5-Mar-08 8:38
mvePete O'Hanlon5-Mar-08 8:38 
GeneralRe: Launch application within a window in my application Pin
led mike5-Mar-08 8:59
led mike5-Mar-08 8:59 
GeneralRe: Launch application within a window in my application Pin
Giorgi Dalakishvili5-Mar-08 21:01
mentorGiorgi Dalakishvili5-Mar-08 21:01 
GeneralRe: Launch application within a window in my application Pin
Joseph Weisenburger7-Mar-08 16:51
Joseph Weisenburger7-Mar-08 16:51 
GeneralRe: Launch application within a window in my application Pin
Giorgi Dalakishvili7-Mar-08 22:39
mentorGiorgi Dalakishvili7-Mar-08 22:39 
QuestionProblem using .Net 2.0 Assembly with Com Pin
Elizabeth Connolly3-Mar-08 2:50
Elizabeth Connolly3-Mar-08 2:50 
I have a .Net (2.0) assembly that I want to call using a Com client (a VB6 program) on another machine. I don't need it to be strong-named or in the GAC - the assembly will be in the same directory as the Com client.

So, based on various examples from googling, MSDN, etc., my process has been:

1. Make sure that the assembly [call it MyAssy.dll] has ComVisible
attribute set, and use both an interface and a class that implements the
interface.
2. Make sure that the assembly, the interface and the class are all
decorated with GUID attributes, and the Interface also has a ComVisible =
true attribute.
3. Build the .Net assembly.
4. On the .Net machine, regasm MyAssy.dll /tlb:MyAssy.TLB. This succeeds,
and I copy both the dll and the type library to the VB6 machine with .Net
2.0 framework installed.
5. Again, regasm MyAssy.dll /tlb:MyAssy.TLB (with correct paths everywhere.)
6. Open the VB project and add the reference to the type library. In the VB6
project I can now see the class and Intellisense shows me all its methods.
So far so good.
7. However, when I try to compile, I get Run-time error -2147024894
(800700002) Automation Error - Cannot find the file specified. The error
occurs when I instantiate an object from MyAssy.dll

The GUIDs in the registry appear to match the GUID for my class and the Type library. I have numerous times removed references, unregistered, verified that the GUIDs are gone from the registry, reregistered, and many other things but have not been able to solve this problem. Even more annoying, I did a proof-of-concept of this whole process several months ago, and it worked fine, and continues to work, on the same 2 machines. The difference here is that MyAssy.dll actually wraps another .Net DLL that actually does something useful, but even when I temporarily removed the reference to the useful .Net DLL from MyAssy.dll, I had the same problem.

I've been through lots of troubleshooting posts that told me to try all of the "fixes" in the above paragraph, but no go. Any idea what might be wrong?

Thanks much,

Elizabeth C.
GeneralRe: Problem using .Net 2.0 Assembly with Com Pin
led mike4-Mar-08 6:20
led mike4-Mar-08 6:20 
GeneralRe: Problem using .Net 2.0 Assembly with Com Pin
Elizabeth Connolly4-Mar-08 6:40
Elizabeth Connolly4-Mar-08 6:40 
GeneralRe: Problem using .Net 2.0 Assembly with Com Pin
Ed.Poore4-Mar-08 6:23
Ed.Poore4-Mar-08 6:23 
GeneralRe: Problem using .Net 2.0 Assembly with Com Pin
Elizabeth Connolly4-Mar-08 6:39
Elizabeth Connolly4-Mar-08 6:39 
GeneralRe: Problem using .Net 2.0 Assembly with Com Pin
Ed.Poore4-Mar-08 6:47
Ed.Poore4-Mar-08 6:47 
QuestionRe: Problem using .Net 2.0 Assembly with Com Pin
Elizabeth Connolly4-Mar-08 7:28
Elizabeth Connolly4-Mar-08 7:28 
GeneralRe: Problem using .Net 2.0 Assembly with Com Pin
Ed.Poore4-Mar-08 7:44
Ed.Poore4-Mar-08 7:44 
GeneralRe: Problem using .Net 2.0 Assembly with Com Pin
Elizabeth Connolly4-Mar-08 8:10
Elizabeth Connolly4-Mar-08 8:10 
GeneralRe: Problem using .Net 2.0 Assembly with Com Pin
Elizabeth Connolly4-Mar-08 6:54
Elizabeth Connolly4-Mar-08 6:54 
GeneralRe: Problem using .Net 2.0 Assembly with Com Pin
Ed.Poore4-Mar-08 6:59
Ed.Poore4-Mar-08 6:59 
GeneralProtecting sub folders on a web site Pin
#realJSOP29-Feb-08 10:31
mve#realJSOP29-Feb-08 10:31 
GeneralRe: Protecting sub folders on a web site Pin
Luc Pattyn29-Feb-08 10:43
sitebuilderLuc Pattyn29-Feb-08 10:43 
GeneralRe: Protecting sub folders on a web site Pin
#realJSOP1-Mar-08 12:11
mve#realJSOP1-Mar-08 12:11 
GeneralRe: Protecting sub folders on a web site Pin
Pete O'Hanlon29-Feb-08 14:35
mvePete O'Hanlon29-Feb-08 14:35 
GeneralRe: Protecting sub folders on a web site Pin
Vasudevan Deepak Kumar29-Feb-08 18:55
Vasudevan Deepak Kumar29-Feb-08 18:55 
GeneralRe: Protecting sub folders on a web site Pin
Pete O'Hanlon2-Mar-08 8:43
mvePete O'Hanlon2-Mar-08 8:43 
GeneralRe: Protecting sub folders on a web site Pin
Vasudevan Deepak Kumar29-Feb-08 18:56
Vasudevan Deepak Kumar29-Feb-08 18:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.