A C# developer has created a C# COM DLL which I use in an IIS7 Native Module (C++). The problem is where to place this DLL. Unlike native COM which specifies the DLL location, the registry CLISD InprocServer32 entry for C# is a generic mscoree.dll.
I was first told to place the DLL in the same folder as the exe making the COM calls. That works but is unacceptable in my case. This C# DLL is called by a native module DLL which runs under the IIS application w3wp.exe in the system32/inetsvr
folder. I really want to avoid deploying to a windows system folder if at all possible.
I was next told to extend the PATH variable to include the directory where I want to place the DLL. This did not work. The path has no effect.
Is there another option for allowing the C# DLL to be located in a folder different from the exe?