473,320 Members | 1,695 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 3267
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: kamilla | last post by:
I have a mysql 3.5 server installed on a suse linux 8.1, with address 10.0.0.100. Now I want to access that db from a W2K pc, address 10.0.0.200. I am able to ping 10.0.0.100, but I cannot connect...
0
by: ruju00 | last post by:
I am getting an error in Login() method of the following class FtpConnection public class FtpConnection { public class FtpException : Exception { public FtpException(string message) :...
5
by: Raj | last post by:
i get this error SQL30020N when selecting data from a table . I altered this table earlier today when i do it a select * from the table query runs OK, but when i join this table with 10 other...
2
by: RdS | last post by:
Hello, I use sourcesafe and vb 2003 for my dev environment. on the sourcesafe server I also have sql2005 and reporting services installed. The web app references this sql server for db. When...
10
by: mairhtin o'feannag | last post by:
Hello, I'm having problems connecting to my new v9 db box. The pertinent information is below: DB2_db2inst1 60000/tcp DB2_db2inst1_1 60001/tcp DB2_db2inst1_2 60002/tcp DB2_db2inst1_END...
1
by: SayamiSuchi | last post by:
Hi.. I have been assigned to make a database in some remote machine.The machine has MSSQL 2005.I need to connect to that remote machine's sql server via my pc using my SQL Management express.I do...
5
by: Cirene | last post by:
I just deployed my new ASP.NET (3.5 FW) site to the hosting company I'm using, webhost4life. NOTE: I HAVE deployed other SQL Server sites to the same account with no issues. Now I'm getting...
13
by: AAaron123 | last post by:
I downloaded the personal website starter kit and when I run it I get the error shown below. I found a way of using Launch Surface Area Configuration that is supposed to fix the remote setting...
0
by: Yoav | last post by:
Hello, I have been trying to enter SQL statmenbts to DB2 control center command line. I saw that user "Thames" wrote to you: > I have to repost my question for help. > > Yesterday I set up two...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.