none
Can't find PInvoke DLL 'dbnetlib.dll' RRS feed

  • Question

  • Hi all

    I developed a mobile application and working fine on emulator. My mobile application access to local computer MS SQL SERVER 2008 R2 for database.

    My mobile application throws following error message on honeywell industrial mobile terminal (windows ce Version 5.0 (build 1400) - you can see the device and OS here : http://www.milesdata.com/products/HONEYWELL/MX9HL/ )

    System. MissingMethodException : Can't find PInvoke DLL 'dbnetlib.dll'

    PS : I copied the dbnetlib.dll file to the mobile device but error still present.

    Ps: I searched internet and found some solutions that telling install several CAB-files (such as : sql.ppc.wce5.armv4i.CAB) but didnt work

    THis is an urgent issue for me and thanks for any help.

    Sunday, February 17, 2013 12:27 PM

All replies

  • To what location did you copy the dll on the target? Either in the same directory as your application executable or the Windows? 

    -- Good luck, Erwin Zwart--- Check out my blog: http://GuruCE.com/blog https://twitter.com/GuruCE_Embedded GuruCE Microsoft Embedded Partner http://GuruCE.com Consultancy, training and development services.

    Sunday, February 17, 2013 3:31 PM
  • I copied the file (dbnetlib.dll) to the folder where my application exe is located. Also copied all dll files which are reference files in the project.
    Sunday, February 17, 2013 6:08 PM
  • Try coping it to the windows folder.

    --- Misbah


    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India) www.tes-dst.com email-misbah.khan@tes-dst.com

    Sunday, February 17, 2013 7:39 PM
  • Hi Misbah, Erwin

    I copied the dbnetlib.dll to the windows root (\windows) but it did not work again. :((

    Monday, February 18, 2013 7:19 AM
  • The problem may be that dbnetlib.dll depends on other DLL's that are not included in the OS.

    Running dependency walker on dbnetlib.dll you can see that the module depends on:

    • winsock.dll (which in turns depends on ws2.dll)
    • coredll.dll

    Check if your OS includes winsock.dll. Of coures coredll.dll is part of the OS but, as you may know, as many other OS modules this DLL is componentizable which means that the specific coredll.dll in the OS may not export some entry points required by dbnetlib.dll.


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com

    Monday, February 18, 2013 1:06 PM