we have an ActiveX DLL built in C#; the DLL is used in a VB6 application (and it will be also consumed by a classic ASP application).
The DLL is a C# Class Library Project with
- class and interface Guids attributes in source code
- COM related attributes/settings in project
- progid attribute in source code
all apparently properly set.
Proof is, we have registered the DLL with regasm /codebase /tlb:xxxxx and VB6 dev env can see the COM object in references window.
After adding the COM DLL reference to the project, Intellisense works and sees everything fine, the application compiles correctly.
The problem is that, if we don't place a copy of the DLL in the same folder as the compiled application exe file, it fails while trying to instantiate an instance of a class in the DLL; the error returned is "System cannot find the file specified". If a copy of the DLL is in the same place as the application exe, everything works ok.
I've found references to similar problems around, but no hint or clues on how to solve.
Mario