Could not load file or assembly 'DundasWinChart' (etc etc) or one of
its dependencies. The system cannot find the file specified.
Even though I don't think any of these things are necessary, I'm
grasping at straws so I tried placing the file in the directory of the
VB program I'm calling it from, also put it in the VB6 directory,
tried doing a regasm on it, tried adding it to the GAC. None of these
had any effect and I'm still getting the same error. Is there
something I'm missing here? I've been googling for the past several
hours trying to figure out why this won't work. Any help is much
appreciated.
Hope it helps...
Also, I've found running ProcessMon (or FileMon/RegMon) to be helpful
with COM interop issues, as you can see what file or registry
locations the app hits as it tries to load your component.
Eusebiu - As I said, the DLL works perfectly when called from a .NET
application. It's only when being called from VB6 that it fails, so I
don't think it's a problem with the Draw function.
TDC - In the testing I've been doing it is the first method to be
called, though in practice there will be other methods called first.
But in both the .NET test program and the VB6 test program I'm calling
it in the same fashion, just instantiating the class and then calling
its Draw function. I'll look into ProcessMon to see if that sheds any
light.
Thanks.
One thing I thought of, is it possible that the Dundas DLL is able to
recognize that the call originated from VB6 and is blocking itself
from running based on licensing or something like that? I think
that's a long shot, but again I'm grasping at straws at this point.
Which file? The error you are getting could be inability to find a DLL
needed by a DLL needed by a DLL needed by your DLL. That's the "or one of
its dependencies".
Yeah I understand that, but why would it only not be able to find it
when running from VB6? I can reference my compiled wrapper DLL from a
C# application and it runs perfectly. Is there any way for me to tell
which file it thinks is missing?
So bizarre...... I have no idea what I changed, but this is now
working. Thanks for the help, if I figure out what the problem was
I'll post the solution in case anyone else runs into a similar issue.