I have a C DLL that provides an external interface to my software. I've been creating examples in various languages, and I'd like to add one for Perl.

The problem that I am running into is that my DLL loads a .NET class library. When that happens the program crashes out with an unhandled .NET exception because it can't locate the library file. All of the files are in the same directory so I don't know why it is not being found.

I'm thinking it is some kind of environment issue--like a dll search path. I don't have any idea where that might be, though.

These are really, REALLY trivial examples I'm building; on the order of 10 lines. There's nothing at all being set up in the other examples. My user base is not likely to have much coding experience, so I'm just trying to give them a boilerplate to build off of.

I think you need to focus your troubleshooting on your DLL function(s).

Quote

the program crashes out with an unhandled .NET exception

That error is telling you that you need to add additional error handling in the dll function. After adding that additional error handling, you may get a more descriptive message pointing to the source of the problem.