Hi I have a C Dll which will interact with a cobol application. we want to send the data to the cobol through internet.
so i created an C# DLL which will call the C DLL. its working fine when i do a consoleapp, but when i try to call the same DLL from ASP.NET its giving error message
i dont understand that error
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
There are some other posts regarding this but those were not matching my context
i think im missing permissions
for asp.net
this is the declaration in my c# dll for calling c dll
[DllImport(@"C:\CCExpert\haz450cp.dll", EntryPoint = "Methodname", CallingConvention = CallingConvention.Cdecl)]
unsafe public static extern void Methodname(ref p1, ref p2);
Edit:
Hi i changed the settings according to your suggestions but now im getting a new error
Microsoft Visual Studio C Runtime Library has detected a fatal error in w3wp.exe