470,861 Members | 1,772 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,861 developers. It's quick & easy.

Error: Cannot Connect to Remote Server

Hi All,

I am developing an app in Compact framework. When i run the app i am getting
the error
"Cannot connect to the remote Server".
I put the same code in regular VB.Net it works fine.But not in Compact
Below is the code snippet i am using to connect to the database.
Here the XML object will call the asp, which in turn calls a COM component
which connects to the database and returns the data.

The excpetion is on this line

Any help is highly appreciated


************************************************** *******
Private Sub cmdOK_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdOK.Click

Dim xmldocASP As New XmlDocument
Dim blnASPResult As Boolean
Dim strURL As String
Dim strUserName As String
Dim strPwd As String
Dim strFacilityName As String
Dim strActualURL As String
Dim xmllistLoginInfo As System.Xml.XmlNodeList

strUserName = Trim(txtUserName.Text)
strPwd = Trim(txtPassword.Text)
strFacilityName = Trim(txtFacilityName.Text)
strURL = Trim(txtURL.Text)

strActualURL = "http://abc/xyz"
strActualURL = strActualURL &
strActualURL = strActualURL & "&cUsrName=" & strUserName
strActualURL = strActualURL & "&cPassWrd=" & strPwd
strActualURL = strActualURL & "&cFacName=" & strFacilityName
'Call asp to validate and get the login info

xmllistLoginInfo = xmldocASP.GetElementsByTagName("login_info")

Catch ex As Exception
End Try

End Sub
************************************************** *******

Nov 20 '05 #1
1 3015

"Sivaprasad" <ss********@hotmail.com> schrieb:
I am developing an app in Compact framework. When i run the
app i am getting the error
"Cannot connect to the remote Server".

You may want to post this question to the Compact Framework group if you
don't get an answer here:


Herfried K. Wagner
MVP ∑ VB Classic, VB.NET
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by kamilla | last post: by
5 posts views Thread by Raj | last post: by
10 posts views Thread by mairhtin o'feannag | last post: by
13 posts views Thread by AAaron123 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.