blah blah blah is here! blah blah » Close

up0down
link

No error msg occurs with this simple VBscript
Dim doc
set doc = CreateObject("MODI.Document")
msgbox "Task completed."
But I get an error translating this to VB.Net:
Dim doc As Object = CreateObject("MODI.Document")
"Cannot create ActiveX component."
Why? It's the same machine.

last answered 2 years ago

1 answers

up0down
link

Solved - though I don't much understand it.
I had some Interop.Modi files plus the Modi.DLL in my project folders because originally I was early binding. I deleted all these and removed all references and then the late binding worked. Don't really see what all this has to do with late binding, unless maybe I had MODI marked as "isolated" in which case maybe it wasn't really late-binding. I dunno.

This post was imported from csharpfriends, if you have a similiar question please ask it again.

All previous members have been migrated, hope you enjoy the new platform!

Feedback