Link to home
Start Free TrialLog in
Avatar of resourcesys
resourcesys

asked on

Windows CE and dbnetlib.dll issue trying to connect to SQL Server

Hi all,

I am working on an application that runs on a hand scanner running Windows CE.

I need to connect to an SQL server database on a network. I have all the code in place, but when I run the application and try to connect to the database, I get the following error:

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

I have added this file to the output project for the application but it makes no difference.

Any help is greatly appreciated.

Thanks.

resourcesys.
Avatar of alexey_gusev
alexey_gusev
Flag of United Kingdom of Great Britain and Northern Ireland image

hmm, sounds like unknown beast to me - this dbnetlib.dll - and it sounds like desktop dll rather than for Windows CE.

could you please provide more info how does your application work? what does it do in terms of its flow?
Avatar of resourcesys
resourcesys

ASKER

Hi alexey_gusev,

The app contains a list of values to be displayed to the user from and SQL CE database hosted on the scanner.

That list can be updated by clicking a button, which will then connect to an SQL server database on a server, download records to a datatable, then loop through and insert those records into the SQL CE database.

When I click to update the list, I get the error.

Thanks.

resourcesys.
ok, how do you connect, could you please post any code?

here's some example (one of numerous :) ):

http://social.msdn.microsoft.com/Forums/en-US/sqlce/thread/f2523d0d-a062-4725-bc8c-7bb6470fc074

it's possible that sql ce isn't installed properly or anything else. you could debug your app and see exactly which statement generate an error
ASKER CERTIFIED SOLUTION
Avatar of resourcesys
resourcesys

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial