Thank you, the DLL is now being found. Since this is all "exploratory" we took the cheap route and used:
[DllImport(@"D:\inetpub\wwwroot\neasos\NEAS\WYP46P.dll", EntryPoint = "WYP46P", SetLastError = true, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
But we've spent the last two days trying to fix/get around this error:
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
We are guessing this is a "bitness" error? My co-worker is the one actually doing the coding and testing so I only know what he tells me. He's tried pure Release and Debug, Any PC and x86 builds for all components. He has "enable 32-bit" in the application config. Anyone have an idea of what we've missed this time?