473,738 Members | 10,068 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with connecting to database from Pocket PC Emulator

2 New Member
Hi,
I am developing a Device Aplication in C# and I have a problem with connection from Visual Studio 2005 to SQL Server 2005.
My connection string should be correct:
Expand|Select|Wrap|Line Numbers
  1. SqlConnection cn = new SqlConnection;
  2. cn.ConnectionString="Data source=MyPC;Initial Catalog=MyDB;User ID=MyID;Password=MyPassword;"
  3. try {
  4. cn.Open // this is where I get sqlException: Specified SQL server not found: MyPC
  5. ...
I enabled TCP/IP in SQL Server Configuration Manager under "Protocols for MSSQL" and cleared TCP Dynamic ports. I set in menu "IP All" TCP Port to 1433. I restarted the server.
I turned off the firewall.
When I run
Expand|Select|Wrap|Line Numbers
  1. netstat -n -a
in the command prompt I can see address 0.0.0.0:1433 LISTENING.
I can add a new DataSet to my project from menu Data->Add Connection. I use SQL Server Authentication with a correct name/password. When I press the button "Test Connection" it works.

I also added DataGrid to the form using the added DataSet. When I debug the project with the Pocket PC 2003 SE Emulator deployed I get instead of the data table sqlException.
Can anyone help me ?
Aug 9 '07 #1
1 4709
dege
2 New Member
The other problem that I had was that I was using Windows Vista.
I found out that I needed to upgrade Emulator to the version 2.0 and to install Windows Mobile Device Center.
I set up the connection to emulator as "DMA default".
The last thing was to set up emulator as "Cradle" in Device Emulator Manager.
Aug 9 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1607
by: juan5 | last post by:
Hi I purchased an h5500 series HP pocket pc. Using VS.NET 2003 I am able to build and deploy to the Pocket PC 2002 Emulator but not to debug the app The app is "installed" in the emulator just fine but that's all that happens What's going on Thanks Juan Dent
4
5998
by: Mark Irvine | last post by:
Hi, I recently upgraded to anAMD64 3400 and installed XP SP2. Unpon trying to run a smart application on the emulator, I recieved and error message: "Emulator for Windows CE One or more files from the Emulator for Windows CE installation is missing. Please reinstall Emulator for Windows CE and try again."
11
6638
by: Abhishek | last post by:
I have a problem transfering files using sockets from pocket pc(.net compact c#) to desktop(not using .net just mfc and sockets 2 API). The socket communication is not a issue and I am able to transfer data across.On the serve I am using Socket 2 API (recv function to read bytes)and not using ..NET. I use FileStream to open the file on the pocket pc, then associate a BinaryReader object with the stream and call ReadBytes to read all the...
3
6938
by: minying | last post by:
Hi everyone! I am experiencing a problem when trying to establish a TCP connection between a program running locally and another program running on the Pocket PC emulator provided by the .NET 2003 environment.
2
2393
by: Claire | last post by:
Running visual studio .net 2003, Ive created a project for a pocket pc. I want to run it in my pocket pc 2003 emulator because if I use that particular one I can connect the emulator to activesync using some 3rd party software. Visual studio keeps opening up a Pocket pc 2002 emulator (the default device). How can I force Visual Studio to use the 2003 emulator instead please. Claire
3
1502
by: Jay | last post by:
Hello, I have Windows Forms application which uses MS Access Database and a Pocket PC application which uses Datasets, Iam trying to pass Datasets between these applications using WebServices. Both these applications are shrink wrapped so they need to perform with little user configuration WebService/IIS is running on the computer having the Windows Application and Pocket PC connectss to the webservice through Active Sync.
3
1960
by: chethana | last post by:
I am using copmaq ipaq pocket pc 2002 h3600 series. This device is synchronized with desk top pc running on windows 2000. I want this pocket pc to be conncted to internet .Kindly help Thanking you Chethana
2
3372
by: Mihai Popescu | last post by:
I wrote a simple application in MFC that uses MSComm ActiveX Control for serial communication. This app works just fine but I have to port it to Pocket PC. So, I wrote another simple application in C# for Pocket PC now using a System.IO.Ports.SerialPort object with the same communication parameters as the former: 19200,n,8,1 and on COM4. The problem is that the latter app generates an IO exception System.IO.FileNotFoundException cause...
1
1892
maxx233
by: maxx233 | last post by:
Hello, I'm trying my first application for a mobile device. I'm doing it up for a pocket pc 2003 device, and all this app does is take a value that's in a textbox (a barcode string), and INSERT it into a test DB that has a single table and a single field just for this purpose. When I run it on the virtual pocket PC emulator it works fine, but when it's actually on the hardware device I've got, no go. The device is running off our wireless...
0
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9476
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8210
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.