1

I have a COM DLL produced in C# using VS2010, using it from VS2910, it works fine, but when I try to use the DLL from Delphi 7, having imported the .tlb file, some of the functions work fine, but one seems to generate the following error.
Could not load file or assembly 'InnovateCV, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c06107b7da48b1da' or one of its dependencies. The system cannot find the file specified.
unfortunatly it have no idea what is failing to load, the InnovateCV is my DLL, and is loaded, getting more information from the exception the Data value is 'System.Collections.ListDictionaryInternal'. Unfortunally my COM DLL is calling a third party .NET DLL, which is where the exception is being thrown. Is there any way to find what it is failing to load.

I've tried using Depends.exe, and there are no DLL's mising that it can see.

Any help would be appreciated.

6
  • 1
    Is there any chance that the function it is failing on is a fairly new addition and the delphi code isn't referencing the most recent build of the assembly? Commented May 20, 2011 at 11:23
  • No there is only set of the DLL's on the system, so the Delphi and C# apps are talking to the same ones. The COM DLL, is re-registered, when I change it to try and debug whats going on. Commented May 20, 2011 at 14:51
  • You registered the DLL with RegAsm? Is the DLL registered in the GAC? Commented May 20, 2011 at 15:35
  • Yes the DLL is Register with RegAsm and shows up fine in the Delphi Type Library import wizard, not registered in the GAC, Delphi 7 knows nothing about the GAC. Commented May 20, 2011 at 15:45
  • Are ALL calls to the third-party-DLL throw this exception or only SOME? The third-party-DLL is in the same directory as your DLL and the Delphi-EXE? Commented May 20, 2011 at 16:08

1 Answer 1

1

Solved the problem, it was a clash of DLL names, between the Delphi App, and the .NET App, so the Delphi App, was failing to find the required function in the DLL, I also had to put all the DLL's in the same directory as the Delphi App. And its now working. Thanks for the Help.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.