S
Sivaprasad
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
*********************************************************
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
*********************************************************