Click to See Complete Forum and Search --> : C++ DLL calling C# DLL on a network drive


Mikado7
January 10th, 2006, 04:19 AM
Hello,

I have a C++ program calling a C++ DLL which instanciates a C# COM Object (From a C# DLL). Everything is working while executing from a local drive but I have an exception : 0xE0434F4D if I run the program from a network drive and I try to call a method from the C++ DLL even if this method simply return an int (a version number for example). The DLL is correctly loaded using LoadLibrary(...), the method (entry-point) is found using GetProcAddress(...), it's when I call the method that I get the exception.

Has anyone an idea of the problem ?

Joël

NoHero
January 10th, 2006, 05:20 PM
Normally calls over network are restricted of course of security issues. You either register it, and add a trusted sign. To be frank, I dunno how this works, but maybe add it to the trusted assemblies can help to.

DotNetChick
February 2nd, 2006, 10:57 AM
I am interested in how you are calling your dll (from C++ into C# dll). I don't have answer for you, but was hoping you could share with me how you are able to do this, as I have been unsuccessful.

Thanks in advance.