Click here to Skip to main content
15,888,984 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: New to Learn Windows Mobile Pin
Richard MacCutchan29-Aug-12 1:53
mveRichard MacCutchan29-Aug-12 1:53 
QuestionFree alternative to MonoDroid Pin
Shameel27-Aug-12 21:09
professionalShameel27-Aug-12 21:09 
SuggestionRe: Free alternative to MonoDroid Pin
RobCroll28-Aug-12 13:29
RobCroll28-Aug-12 13:29 
GeneralRe: Free alternative to MonoDroid Pin
Shameel28-Aug-12 14:48
professionalShameel28-Aug-12 14:48 
QuestionAVINASH Pin
Avinash Diwakar27-Aug-12 19:37
Avinash Diwakar27-Aug-12 19:37 
AnswerRe: AVINASH Pin
Avinash Diwakar27-Aug-12 19:37
Avinash Diwakar27-Aug-12 19:37 
AnswerRe: AVINASH Pin
Richard MacCutchan27-Aug-12 21:30
mveRichard MacCutchan27-Aug-12 21:30 
QuestionInvalid URI: The hostname could not be parsed Pin
biop.codeproject26-Aug-12 20:02
biop.codeproject26-Aug-12 20:02 
Hi all,

I have a web service. My coworker provides that to me. It is in the internal network. I have a PDA program (in Windows Mobile 6) which use the web service. Originally it works fine. I can debug the program in VS2008.

One day as we have to test, my coworker and I move to a separate network. His machine IP changes and so does my machine. After changing, I then cannot run my program in debug mode.

It always give this message:
Quote:
Invalid URI: The hostname could not be parsed


And it stops at GetResponse statement in the following code:
VB
Public Shared Function CheckURLConnection(ByVal strUrl As String, ByVal networkCredential As NetworkCredential, ByRef strMsg As String) As Boolean

Dim streamReader As StreamReader
Dim webResponse As WebResponse = Nothing
Dim streamResponse As Stream
Dim webRequest As WebRequest

Dim isSucceed As Boolean = False
Try
   webRequest = webRequest.Create(strUrl)
   webRequest.Credentials = networkCredential
   webRequest.Timeout = 60000
   webResponse = webRequest.GetResponse
   streamResponse = webResponse.GetResponseStream
                                ^^^^^^^^^^^^^^^^^
   streamReader = New StreamReader(streamResponse)


And if I run the program without debugging, there is no problem. There is no stopping at webResponse.GetResponseStream! Strange. Please help.

{Edited} The URL is this format: http://10.25.0.52/tems_rfid/TEMS_RFID_WebService.asmx
Of course, I have validated independently I can access using IE!
So the URI, in theory, can be parsed.

{Edited 2} If I create a new PDA program and put the CheckURLConnection() in there, no problem!
SuggestionRe: Invalid URI: The hostname could not be parsed Pin
Aditya_Pandey28-Aug-12 22:28
Aditya_Pandey28-Aug-12 22:28 
GeneralRe: Invalid URI: The hostname could not be parsed Pin
biop.codeproject2-Sep-12 16:11
biop.codeproject2-Sep-12 16:11 
QuestionAndroid: Pin
hctm.anjaana22-Aug-12 19:54
hctm.anjaana22-Aug-12 19:54 
AnswerRe: Android: Pin
Mvandroid22-Aug-12 20:09
Mvandroid22-Aug-12 20:09 
GeneralRe: Android: Pin
hctm.anjaana22-Aug-12 20:31
hctm.anjaana22-Aug-12 20:31 
GeneralRe: Android: Pin
hctm.anjaana23-Aug-12 19:18
hctm.anjaana23-Aug-12 19:18 
GeneralRe: Android: Pin
Mvandroid23-Aug-12 19:39
Mvandroid23-Aug-12 19:39 
GeneralRe: Android: Pin
hctm.anjaana23-Aug-12 19:45
hctm.anjaana23-Aug-12 19:45 
GeneralRe: Android: Pin
Mvandroid23-Aug-12 19:50
Mvandroid23-Aug-12 19:50 
GeneralRe: Android: Pin
hctm.anjaana23-Aug-12 19:51
hctm.anjaana23-Aug-12 19:51 
GeneralMessage Closed Pin
23-Aug-12 19:53
Mvandroid23-Aug-12 19:53 
GeneralRe: Android: Pin
hctm.anjaana23-Aug-12 19:56
hctm.anjaana23-Aug-12 19:56 
QuestionWhich platform used most in android to build app?? Pin
mane080622-Aug-12 5:03
mane080622-Aug-12 5:03 
AnswerRe: Which platform used most in android to build app?? Pin
Anas Al Salool22-Aug-12 7:04
Anas Al Salool22-Aug-12 7:04 
AnswerRe: Which platform used most in android to build app?? Pin
Sahil Mahajan Mj24-Aug-12 22:49
Sahil Mahajan Mj24-Aug-12 22:49 
AnswerRe: Which platform used most in android to build app?? Pin
RobCroll26-Aug-12 18:44
RobCroll26-Aug-12 18:44 
AnswerRe: Which platform used most in android to build app?? Pin
Ricky5926-Aug-12 21:42
Ricky5926-Aug-12 21:42 

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.