I have a class that uses the DLLImport().
In the first parameter, you must pass the path + name of the dll.
c:\\project \\bin\\[name of dll]
When I run in the local environment, the process runs successfully.
How to access it with web application?
How to identify the application folder and pass the first parameter of DllImport?
Something like ...
_dllLocation const string = "c: \\ project \\ bin \ [dll name] ";
[DllImport (_dllLocation, CharSet = CharSet.Ansi, CallingConvention CallingConvention.Cdecl =)]
How to pass the first parameter without passing a fixed path?