Call from ASP.net cobol form to dll native project

[Migrated content. Thread originally posted on 31 January 2012]

Hello I could not call dll native cobol from asp.net, the dll exists but the asp.net cobol program does not find it, I used asp.net with windows .net class link in order to link dll native, asp.net works well with .net windows program but I have te same problem because I can not link .net windows program with dll native in this solution, the dll exists and compile but it does not work.

Thanks for your help

Francisco Zambrano

Parents
  • Thank you for your answer, but I have a problem My solution have a web site, managed cobol program and native cobol program, the web site access the managed cobol program as dll ok, but when te managed try to access native dll from managed cobol program I receive the following error in the stack

    [EntryPointNotFoundException: No se puede encontrar el punto de entrada denominado 'Nativo' en el archivo DLL 'Nativo.dll'.]
    Nativo(IntPtr A_0) 0
    Intermedio.Intermedio(Reference Mensaje) in C:\Cobol\francisco\Webdll-1\Intermedio\Intermedio.cbl:11
    _Default.btnBoton_Click(Object lnkSender, EventArgs lnkEvent) 231
    System.Web.UI.WebControls.Button.OnClick(EventArgs e) 118
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) 112
    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) 10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) 13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) 36
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 5563

    Thank you
Reply
  • Thank you for your answer, but I have a problem My solution have a web site, managed cobol program and native cobol program, the web site access the managed cobol program as dll ok, but when te managed try to access native dll from managed cobol program I receive the following error in the stack

    [EntryPointNotFoundException: No se puede encontrar el punto de entrada denominado 'Nativo' en el archivo DLL 'Nativo.dll'.]
    Nativo(IntPtr A_0) 0
    Intermedio.Intermedio(Reference Mensaje) in C:\Cobol\francisco\Webdll-1\Intermedio\Intermedio.cbl:11
    _Default.btnBoton_Click(Object lnkSender, EventArgs lnkEvent) 231
    System.Web.UI.WebControls.Button.OnClick(EventArgs e) 118
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) 112
    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) 10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) 13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) 36
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 5563

    Thank you
Children
No Data