I then added reference of ProgramB.dll in my .NET project
Now when I try to build my .NET Web Service, it is giving me following error: The type 'COMSVCSLib.ObjectControl' is defined in an assembly that is not referenced. I can see following files in References of .NET application: COMSVCSLib Interop.COMSVCSLib Interop.ProgramA Interop.ProgramB
Also, the code is showing problem with ProgramB assembly (for which I had those .exp and .lib files)
What could be the possible reason, or am I doing anything wrong here?
You shouldn't have two different references on COMSVCSLib. You could try to remove one or the other.
PS: .exp and .lib files are useless for a .NET client