468,556 Members | 2,382 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,556 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
framework.
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
"xmldocASP.Load(strActualURL.ToString)"

Any help is highly appreciated

Thanks
Siva

************************************************** *******
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
Try

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

strActualURL = "http://abc/xyz"
strActualURL = strActualURL &
"/GetLoginInfo.asp?cChkReq=eIVFLogin"
strActualURL = strActualURL & "&cUsrName=" & strUserName
strActualURL = strActualURL & "&cPassWrd=" & strPwd
strActualURL = strActualURL & "&cFacName=" & strFacilityName
'Call asp to validate and get the login info
xmldocASP.Load(strActualURL.ToString)

xmllistLoginInfo = xmldocASP.GetElementsByTagName("login_info")

Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

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


Nov 20 '05 #1
1 2866
Hello,

"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:

news://news.microsoft.com/microsoft....mpactframework

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
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
reply views Thread by NPC403 | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.