Asp.Net C# DllImport problem
- by user346665
Hi,
I want to import DLL file in my web site project. I have dll file "my.dll" in folder C:\DLLDir and I'm using the code :
[DllImport("C:\\DLLDir\\my.dll", EntryPoint = "Out32")]
This works ok. But I want to use relative path (web site root path) . I'm trying to put "my.dll" in "bin" or root folder and I'm using the code :
[DllImport("my.dll", EntryPoint = "Out32")]
but I'm getting the error: Unable to load DLL 'my.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Any ideas?