System.PlatformNotSupportedException

A

avanja

Can anybody help me solving this problem?

I have mobile computer model HandHeld dolphin 7600.
Processor: Samsung, ARM920T-S3C2440A
OS: Microsoft Windows CE 5.00

I've managed to establish network connection through bluetooth with my
network (I can ping the computers and copy files with windows
explorer).

I made a very simple console application for the Handheld device that
opens connection with SQL server2000 SP3 installed on my PC and here
is the code:

using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
SqlConnection conn = new SqlConnection ("Data Source=MyPC;Persist
Security Info=True;Password=MyPass;User ID=MyUser;Initial
Catalog=MyDB");
conn.Open();
}
}
}

On emulator it is working OK but when i deploy on my HandHeld 7600 i
get and PlatformNotSupportedException on the second row conn.Open();

The same application is working perfectly with other Windows CE
devices and Windows Mobile devices and i have problem only with
HandHeld 7600.
I also tried to build and deploy the apllpication both with VS2003 and
VS2005 but error is the same.

I also started the Profiler on my SQL server 2000 and made a trace and
i saw two lines AuditLogin and AuditLogout so i can see that the
application is trying to connect to the server.

So what can my problem be?

Tnx in advance.
P.S. if i change the connenction string to some non existing database
or non extisting server i get a normal SQLServer exception i get my
error only when the ConnectionString is OK.
 
A

Adam

Dnia 23 Apr 2007 02:48:33 -0700, (e-mail address removed) napisa³(a):
Can anybody help me solving this problem?

I have mobile computer model HandHeld dolphin 7600.
Processor: Samsung, ARM920T-S3C2440A
OS: Microsoft Windows CE 5.00 [cut]
Tnx in advance.
P.S. if i change the connenction string to some non existing database
or non extisting server i get a normal SQLServer exception i get my
error only when the ConnectionString is OK.

Check the database collation and check Regional Settings->Region->Your
Locale. Probably your mobile computer don't support language in which
database collation is.
 
V

vanja

Adam напиша:
Dnia 23 Apr 2007 02:48:33 -0700, (e-mail address removed) napisa³(a):
Can anybody help me solving this problem?

I have mobile computer model HandHeld dolphin 7600.
Processor: Samsung, ARM920T-S3C2440A
OS: Microsoft Windows CE 5.00 [cut]
Tnx in advance.
P.S. if i change the connenction string to some non existing database
or non extisting server i get a normal SQLServer exception i get my
error only when the ConnectionString is OK.

Check the database collation and check Regional Settings->Region->Your
Locale. Probably your mobile computer don't support language in which
database collation is.

Tnx alot Adam, i changed the collation of my database and now
everythilng is working ok.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top