开发者

.NET COM DLL throwing exception when used in Delphi

开发者 https://www.devze.com 2023-03-07 01:34 出处:网络
I have a COM DLL produced in C# using VS2010, using it from VS2910, it works fine, but when 开发者_Go百科I try to use the DLL from Delphi 7, having imported the .tlb file, some of the functions work f

I have a COM DLL produced in C# using VS2010, using it from VS2910, it works fine, but when 开发者_Go百科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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号