I was given a dll that was written in C++ some years ago and was asked
to write a .Net wrapper for component.
Using .Net's DllImport attribute I created a wrapper that works as
expected on my XP box.
However, when I move the wrapper (and all dependent components) to a
Windows Server 2003 box, I receive the following error:
System.DllNotFoundException : Unable to load DLL...
I have used DepencyWalker to verify that all my dependent dll file are
in the system32 directory. I've also used FileMon to verify that my
app is finding the files in the system32 directory.
I have been googling all day and have yet to find a solution. It has
been hinted at in a few posts the problem may have to do with
permissions or .Net configuartion. However, I do not know how to go
about setting com interop permissions for a particular group/user.
Any help would be appreciated.
Egbert Nierop (MVP for IIS) - 11 Sep 2005 07:48 GMT
>I was given a dll that was written in C++ some years ago and was asked
> to write a .Net wrapper for component.
[quoted text clipped - 17 lines]
>
> Any help would be appreciated.
You might use the ExactSpelling=true attribute setting in the DllImport.
ps: Why not give use a sample of your code?