Click here to Skip to main content
15,897,226 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: System.Diagnostics.Process in CF 1.0 Pin
Dewald7-Dec-06 21:01
Dewald7-Dec-06 21:01 
GeneralRe: System.Diagnostics.Process in CF 1.0 Pin
arcticbrew8-Dec-06 8:52
arcticbrew8-Dec-06 8:52 
Questionsbr extension Pin
Like2Byte4-Dec-06 10:27
Like2Byte4-Dec-06 10:27 
AnswerRe: sbr extension Pin
Mike Dimmick7-Dec-06 23:51
Mike Dimmick7-Dec-06 23:51 
Questionusing C/C++ to read SIM card information Pin
George_George4-Dec-06 3:54
George_George4-Dec-06 3:54 
QuestionAccess phone call log Pin
Stefano Alini4-Dec-06 3:36
Stefano Alini4-Dec-06 3:36 
QuestionIPv6 programming on mobile device with vc2005 Pin
fansy_fs3-Dec-06 19:03
fansy_fs3-Dec-06 19:03 
Questioncannot establish a connection to the network PocketPC 5.0 Pin
steve_rm3-Dec-06 17:19
steve_rm3-Dec-06 17:19 
Hello,

VS 2005

I have created a Pocket that uses a web service to get data from a SQL server.
I have created the web refererence to the web service.

I am developing a pocket PC in WM 5.0

However, when I click a button on the PDA to get the data I get this error message "Cannot establish a connection to the network"

I am using active syn and have and using the emulator. This has been connected ok.

I have also configured the emulator from File | configure | Network and checked host only network. ( I don't think this makes much difference as the pocket 2003 i developed, it did not make much difference, as it worked if it was checked or not).

The code that causes the error is below:
<br />
Try<br />
            Dim ws As New DataIncidents.Service()<br />
            Dim ds As New DataSet<br />
<br />
            ds = ws.getIncidents()<br />
            'Dim cnnStr As String<br />
            'cnnStr = ws.getIncidents()<br />
<br />
            Me.grdIncidents.DataSource = ds.Tables(0).DefaultView<br />
<br />
        Catch ex As Exception<br />
            MessageBox.Show(ex.Message)<br />
        End Try<br />


If I add the Url line in, it works ok
<br />
Try<br />
            Dim ws As New CodeRed.Service()<br />
            ws.Url = "http://1.1.1.1/Incidents/Service.asmx" 'Works with this line<br />
            Dim ds As New DataSet<br />
<br />
            ds = ws.getIncidents()<br />
            'Dim cnnStr As String<br />
            'cnnStr = ws.getIncidents()<br />
<br />
            Me.grdIncidents.DataSource = ds.Tables(0).DefaultView<br />
<br />
        Catch ex As Exception<br />
            MessageBox.Show(ex.Message)<br />
        End Try<br />


Its not good to have this line hard coded in the program as if the location is changed then the problem will no longer function.

Can anyone tell me why I am getting this error.

Many thanks in advance,

Steve
AnswerRe: cannot establish a connection to the network PocketPC 5.0 Pin
AlexeiXX36-Dec-06 6:36
AlexeiXX36-Dec-06 6:36 
GeneralRe: cannot establish a connection to the network PocketPC 5.0 Pin
steve_rm6-Dec-06 23:40
steve_rm6-Dec-06 23:40 
AnswerRe: cannot establish a connection to the network PocketPC 5.0 Pin
a_jhakas11-Dec-06 19:01
a_jhakas11-Dec-06 19:01 
QuestionWhere the hell is STAThread (CF 2.0)? [modified] Pin
rudiman2-Dec-06 12:52
rudiman2-Dec-06 12:52 
AnswerRe: Where the hell is STAThread (CF 2.0)? Pin
Mike Dimmick7-Dec-06 23:56
Mike Dimmick7-Dec-06 23:56 
QuestionPerformance issues using waveInxxxx() on Pocket PC Pin
stolu1-Dec-06 6:07
stolu1-Dec-06 6:07 
QuestionSorting problem of a listview. Pin
Ivan.Sun30-Nov-06 16:11
Ivan.Sun30-Nov-06 16:11 
Questionpocket PC connecting to published web service Pin
steve_rm30-Nov-06 16:03
steve_rm30-Nov-06 16:03 
AnswerRe: pocket PC connecting to published web service Pin
Chris S Kaiser15-Dec-06 9:24
Chris S Kaiser15-Dec-06 9:24 
QuestionSymbol Mobile computer application programming Pin
sagarrasal30-Nov-06 9:19
sagarrasal30-Nov-06 9:19 
AnswerRe: Symbol Mobile computer application programming Pin
Chris S Kaiser15-Dec-06 9:21
Chris S Kaiser15-Dec-06 9:21 
QuestionMy app works on the PC but not on the Smart Device - I'm desperate! Pin
Dewald29-Nov-06 3:33
Dewald29-Nov-06 3:33 
AnswerRe: My app works on the PC but not on the Smart Device - I'm desperate! Pin
Sujith C Jose29-Nov-06 17:45
Sujith C Jose29-Nov-06 17:45 
AnswerRe: My app works on the PC but not on the Smart Device - I'm desperate! Pin
Sujith C Jose29-Nov-06 18:23
Sujith C Jose29-Nov-06 18:23 
Question.net CF need help with ping and Wake On Lan Pin
Geoff_300129-Nov-06 2:04
Geoff_300129-Nov-06 2:04 
Questionread file Pin
netDeveloper28-Nov-06 4:55
netDeveloper28-Nov-06 4:55 
AnswerRe: read file Pin
zoid ! 28-Nov-06 7:41
zoid ! 28-Nov-06 7:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.