P
pedroalves
Hi all!
I have am developing an application that connects to an SQL Server
directly. I have a dedicated server machine, a laptop for development
and an ipaq 3760 (windows mobile 2002). This device doesn't have wifi,
so I have to use activesync through usb.
* All goes fine in this development setup. *
Today, I brought the laptop and the pda to test on a production server,
just to see if I could connect ok, and as usual, problems arrise...
I can't connect to this SQL server...
The program is developed with .NETCF 1.1 sp3 in c#.
Running the application on the emulator, on the same machine that
serves the activesync link, I get an exception stating:
"SQL Server does not exist or access denied."
If I try to connect with the pda on the craddle, I get:
"General network error. Check your network documentation."
and off the craddle:
"Specified SQL server not found: SRV"
Here is the connection string:
"server=SRV;database=JONOB;user id=sa;password=;";
I have also tried, among other variations, to connect to the ip of the
server with:
"server=192.168.1.50;database=JONOB;user id=sa;password=;";
I have mada a simple test program using .net full version making the
same steps as in the cf verision,
and running on the computer that is hosting the activesync it connects
ok. Basically was this:
SqlConnection connection = new SqlConnection();
connection.ConnectionString = "User ID=sa;Initial Catalog=Jonob;Data
Source=SRV";
connection.Open();
Using Ethereal, I can see that there is some traffic going on between
the laptop and the server when I try to connect on the pda. I guess I
don't see the pdas ip, because the laptop is doing network address
translation.
I can access the internet on the pda, but I can't access any network
folder.
On the (Windows Mobile 2003) emulator, I can browse network shares, but
also cannot connect to the server.
There are no firewalls involved.
I have on Settings / Connections set the "My network card connects to:"
-> The internet
and enabled pass-through for this connection in ActiveSync on the pc.
I see that the pda resolves the address of the server, because when I
ping with vxUtil the address "SRV", it resolves the ip, but gets no
reply. Again, the laptop can ping the server. Is this normal?
- Why I am getting this weird behaviour?
- Why can I connect to network folders on the emulator, but can't on a
real device?
- And most important of all, why, oh why can't I connect to this
server!?!?!
I've been googling all day, and I see a lot of people seing this
"General network error" on the .net desktop version, but those appear
after connection, so they don't seem related.
Sorry for such a long post...
Thanks in advance,
Pedro Alves
I have am developing an application that connects to an SQL Server
directly. I have a dedicated server machine, a laptop for development
and an ipaq 3760 (windows mobile 2002). This device doesn't have wifi,
so I have to use activesync through usb.
* All goes fine in this development setup. *
Today, I brought the laptop and the pda to test on a production server,
just to see if I could connect ok, and as usual, problems arrise...
I can't connect to this SQL server...
The program is developed with .NETCF 1.1 sp3 in c#.
Running the application on the emulator, on the same machine that
serves the activesync link, I get an exception stating:
"SQL Server does not exist or access denied."
If I try to connect with the pda on the craddle, I get:
"General network error. Check your network documentation."
and off the craddle:
"Specified SQL server not found: SRV"
Here is the connection string:
"server=SRV;database=JONOB;user id=sa;password=;";
I have also tried, among other variations, to connect to the ip of the
server with:
"server=192.168.1.50;database=JONOB;user id=sa;password=;";
I have mada a simple test program using .net full version making the
same steps as in the cf verision,
and running on the computer that is hosting the activesync it connects
ok. Basically was this:
SqlConnection connection = new SqlConnection();
connection.ConnectionString = "User ID=sa;Initial Catalog=Jonob;Data
Source=SRV";
connection.Open();
Using Ethereal, I can see that there is some traffic going on between
the laptop and the server when I try to connect on the pda. I guess I
don't see the pdas ip, because the laptop is doing network address
translation.
I can access the internet on the pda, but I can't access any network
folder.
On the (Windows Mobile 2003) emulator, I can browse network shares, but
also cannot connect to the server.
There are no firewalls involved.
I have on Settings / Connections set the "My network card connects to:"
-> The internet
and enabled pass-through for this connection in ActiveSync on the pc.
I see that the pda resolves the address of the server, because when I
ping with vxUtil the address "SRV", it resolves the ip, but gets no
reply. Again, the laptop can ping the server. Is this normal?
- Why I am getting this weird behaviour?
- Why can I connect to network folders on the emulator, but can't on a
real device?
- And most important of all, why, oh why can't I connect to this
server!?!?!
I've been googling all day, and I see a lot of people seing this
"General network error" on the .net desktop version, but those appear
after connection, so they don't seem related.
Sorry for such a long post...
Thanks in advance,
Pedro Alves