PC Review


Reply
Thread Tools Rate Thread

Cannot connect to the remote Server

 
 
Sivaprasad
Guest
Posts: n/a
 
      23rd Sep 2003
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
*********************************************************


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
connect vb6 to remote sql server Ali Tareq Microsoft VB .NET 1 4th Dec 2008 12:15 PM
Re: Connect To Local SQL Server DB From Remote Server Jeff Dillon Microsoft ASP .NET 0 21st Aug 2008 11:12 PM
How to connect into remote server MSK Microsoft ASP .NET 3 23rd Apr 2007 01:52 PM
How to connect remote server MSK Microsoft Dot NET 1 18th Apr 2007 03:42 PM
Connect to remote SQL Server from behind ISA HardBap Microsoft Dot NET 0 11th Mar 2005 04:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:58 AM.