Solved

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

Posted on 2010-09-03
4
3,587 Views
Last Modified: 2013-12-27
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.
0
Comment
Question by:resourcesys
  • 2
  • 2
4 Comments
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 33597476
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?
0
 

Author Comment

by:resourcesys
ID: 33599080
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.
0
 
LVL 24

Expert Comment

by:alexey_gusev
ID: 33599411
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
0
 

Accepted Solution

by:
resourcesys earned 0 total points
ID: 33602552
Hi alexey_gusev,

I have fixed the issue by installing the following .CAB file:

sql.phone.wce5.armv4i

It must have contained the missing .dll

Thanks for your assistance.

resourcesys.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now