Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Having problem with Motolora MC75A

$
0
0

Hello
I developed which is supposed to connect with a web page supplier a value on a php page in which that page gives data in return, I tested it on my computer it is working very well.
But when I deployed it it doesnt process anywhere that has to do with database.
But If I paste on the browser it does fine but the phone couldnt.

Below is the code

   Public Shared Function StringFromURL(ByVal URL As String) As String
        Try

            Dim sr As System.IO.StreamReader = New System.IO.StreamReader(StreamFromURL(URL))
            Dim f As String = sr.ReadToEnd()
            sr.Dispose()
            Return f

        Catch ex As Exception
            Return "1"
        End Try

    End Function

    Private Shared Function StreamFromURL(ByVal URL As String) As System.IO.Stream

        Dim wReq As Net.WebRequest
        wReq = WebRequest.Create(URL)
        wReq.Timeout = 1020000
        wReq.PreAuthenticate = True
        Dim wres As WebResponse = wReq.GetResponse
        Return wres.GetResponseStream

    End Function

No error but it would never fetch the record from the web for me though if I copy the same url and paste it on the web it will process.

Please who can tell me why?
Thanks


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>