Smart Devices

  • Thread starter Thread starter Mex
  • Start date Start date
M

Mex

Hi

Im testing VS2005 and Smart Device application
I need to connect to SQL server 2005, but there is no System.Data.SqlClient
namespace and i cant set refference?

How can i do that?


Best regards;
Andry
 
Hi

Im testing VS2005 and Smart Device application
I need to connect to SQL server 2005, but there is no System.Data.SqlClient
namespace and i cant set refference?

How can i do that?

Best regards;
Andry


and i cant set refference?

What do you mean you can't set a reference? I can set a reference to
System.Data.SqlClient just fine?

Thanks,

Seth Rowe
 
OK i Installed SDK and when i browse to SqlClient file i can set reference.


No i got new problem

Can't find PInvoke DLL 'dbnetlib.dll'. when i try open sqlconnection

How can i install programs on my Pocket PC Emulator, beacuse i need to
install CAB file on my "emulated device"


A.
 
OK i Installed SDK and when i browse to SqlClient file i can set reference.

No i got new problem

Can't find PInvoke DLL 'dbnetlib.dll'. when i try open sqlconnection

How can i install programs on my Pocket PC Emulator, beacuse i need to
install CAB file on my "emulated device"

A.

Unfortunately, I can't help you much - I'm not a smart devices
developer.

Thanks,

Seth Rowe
 
Hi Andry -

I'm a bit confused; if you're using the Windows Mobile SDK and Visual
Studio 2005, the application should already be installed--running,
even, depending on the options you set--when the emulator opens. Check
for your application in the Programs folder.

I've never had to go through a seperate step to install an application
I was debugging onto the emulator. If I have my mobile device plugged
into my PC, VS 2005 will even automagically deploy it right onto my
mobile device for debugging.

If you did have a cab file that you needed to install, though, I would
have to imagine you'd install it through ActiveSync 4.5, though, just
like you would if you had the PocketPC hardware present.

I would check your preferences and/or reinstall the Windows Mobile SDK
to see if that helps.

Good Luck,

-Mark
 
Mex said:
Hi

Strange things happen :)
On my laptop all works fine,
what SDK's i must install for System.Data.SqlClient.dll?
I can set only refrences to following;


It depends on the class you want to use. There is no SqlClient.dll.
SqlClient is a Namespace, not a DLL. Classes within the namespace
are located in the System.Data.dll

Look in the documentation of the class to find the dll it's located in. For
example, at the top of the documentation on the SqlConnection class you can
read
"Assembly: System.Data (in system.data.dll)"

And at the bottom you find the "version information" section that shows if
it's available in your version of the Framework.


Armin
 
Hi Armin

On .NET Compact Framework is SqlClient namespace not under System.Data
You must set reference to System.Data.SqlClient.dll

Problem is, o dont know what SDK i must install to get it work.
When i set manually reference to this dll i get error "Can't find PInvoke
DLL 'dbnetlib.dll'."
On my laptop all works fine but not on my desktop.


A.
 
Mex said:
Hi Armin

On .NET Compact Framework is SqlClient namespace not under System.Data
You must set reference to System.Data.SqlClient.dll

The documentation doesn't distinguish, so I was relying on it.
Problem is, o dont know what SDK i must install to get it work.
When i set manually reference to this dll

I thought you don't have the dll?! (in your screenshot)
i get error "Can't find PInvoke DLL 'dbnetlib.dll'."
On my laptop all works fine but not on my desktop.


Hmm.. is this the actual problem? Or do you get a compile error because of a
missing dll?


Armin
 
Ok now it works

a) Create shared folder on my emulator
b) installed sql.ppc.wce4.armv4.CAB

and it works like a charmed :)

thnx anyway!


M.
 
Back
Top