DLLImport unmanaged C++ DLL from WCF Service on HPC? RRS feed

  • Question

  • I'm trying to import a simple DLL that just returns an int as a test - The code fails - It appears CLR isn't trusting the location of the DLL perhaps?

          // [DllImport("C:\\HPC\\Radich\\Debug\\Radich.dll")]
          public static extern int CallMe();


    It doesn't appear to matter if I use the full path (C:\Hpc\Radich\Debug\Radich.dll) or put the dll with the wcf service dll.

    This works in debugger fine calling the wcf via Visual Studio / WCF Test Client / WCF Service Host.

    To try to avoid some security issues I ran Visual Studio as administrator and submitted job to HPC as administrator.

    Is there an additional step similar to CASPOL or specific paths I need the DLL in? 

    Thank you,

    Steve Radich

    Thursday, November 1, 2012 4:17 PM