Windows CE.NET SqlClient PlatformNotSupportedException

  • Thread starter =?iso-8859-1?Q?Mehmet_Demir=F6z?=
  • Start date
?

=?iso-8859-1?Q?Mehmet_Demir=F6z?=

Windows CE.NET SqlClient PlatformNotSupportedException
ncConnection = New system.Data.SqlClient.SqlConnection
Dim svr As String = "192.168.10.5"
Dim pwd As String = ""
Dim usr As String = "sa"
Dim catalog As String = "Northwind"
ncConnection.ConnectionString = _
"data source=" & svr & ";" & _
"password=" & pwd & ";" & _
"user id=" & usr & ";" & _
"initial catalog=" & catalog & ";" & _
"persist security info=True" ' & _
ncConnection.Open()
 
G

Ginny Caughey [MVP]

Mehmet,

Do you have the same problem if you remove "persist security info=True"?
 
K

Kevin Boske - [MS]

Which version of WindowsCE.NET are you using ? 4.0? 4.1? 4.2?

4.1 or 4.2 is required.

Kevin Boske
([email protected])
SQL Server CE Team
Microsoft
----------------------------------------------------------------------------
----------------------------------------
Everything you need to know about SQL Server CE:

http://www.microsoft.com/sql/ce/techinfo/default.asp
----------------------------------------------------------------------------
----------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
----------------------------------------------------------------------------
----------------------------------------
--------------------
Content-Class: urn:content-classes:message
From: =?iso-8859-1?Q?Mehmet_Demir=F6z?= <[email protected]>
Sender: =?iso-8859-1?Q?Mehmet_Demir=F6z?= <[email protected]>
Subject: Windows CE.NET SqlClient PlatformNotSupportedException
Date: Mon, 3 Nov 2003 03:32:27 -0800
Lines: 14
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcOh/ij776FtDrngQr2gEt/GpeVNwQ==
Newsgroups: microsoft.public.dotnet.framework.compactframework
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:37538
NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Windows CE.NET SqlClient PlatformNotSupportedException
ncConnection = New system.Data.SqlClient.SqlConnection
Dim svr As String = "192.168.10.5"
Dim pwd As String = ""
Dim usr As String = "sa"
Dim catalog As String = "Northwind"
ncConnection.ConnectionString = _
"data source=" & svr & ";" & _
"password=" & pwd & ";" & _
"user id=" & usr & ";" & _
"initial catalog=" & catalog & ";" & _
"persist security info=True" ' & _
ncConnection.Open()
 
R

Radek Paliszkiewicz

Hallo Group,

I have identical problem.
I am using VS.NET 2003 with Windows CE .NET 4.1 Emulator. Maybe the
connnection string is invalid? Something missigng in it?

string conn = "data source=192.168.1.130;password=aaa;user id=sa;initial
catalog=northwind;persist security info=True";

i was also trying with such one:
string conn = "data source=192.168.1.130;password=aaa;user id=sa;initial
catalog=northwind;";

What else should I do?

Greetings
Radek Paliszkiewicz
 
M

mehmet demiröz

Help me?
Microsoft Visual Basic.NET 2003
SQLServer 2000
-----
Windows Ce.Net 4.1 Emulator or Microsoft Windows CE.NET Version
4.10(Build 908)

Me.ZorluConnection = New System.Data.SqlClient.SqlConnection
Me.ZorluConnection.ConnectionString =
“Server=192.168.10.5;password=;user id=sa;initial catalog=Northwind;”
Try
Me.ZorluConnection.Open()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Ex.Message(Windows CE.NET SqlClient PlatformNotSupportedException)
 

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