473,383 Members | 1,855 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,383 software developers and data experts.

Unable To Connect To Remote Server

I have the following code :
Which is being called from a C# Smart device project form and is being
displayed via the vs.net 2003 ppc emulator. Tthe problem that im getting is
that when it tries to call the web service I get the error "Unable to
connect to the remote server", which is caught by the exception over the
soap exception.

I read that this could be a firewall thing , so i dropped the firewall,
which made no difference.
I have tested this code on a vb.net form and it works first time.

public bool DoLogin()

{

bool blnLoginSucessful;

DataSet dsLogin;

blnLoginSucessful = false;

CustomerEngine.Customer objWebservice;

string strError;

strError = "OK";

objWebservice = new CustomerEngine.Customer();

try

{

dsLogin = objWebservice.PinNumberLogin(PinNumber,strError);
blnLoginSucessful = true;


Jul 25 '06 #1
1 7563
This error can't be because im calling a web service that uses a vb.net
service with a byref ?

I'm struggling to find an answer as you may have guessed :D

"Jon Vaughan" <jo**********@hotmail.comwrote in message
news:%3*******************@fe04.news.easynews.com. ..
>I have the following code :
Which is being called from a C# Smart device project form and is being
displayed via the vs.net 2003 ppc emulator. Tthe problem that im getting
is
that when it tries to call the web service I get the error "Unable to
connect to the remote server", which is caught by the exception over the
soap exception.

I read that this could be a firewall thing , so i dropped the firewall,
which made no difference.
I have tested this code on a vb.net form and it works first time.

public bool DoLogin()

{

bool blnLoginSucessful;

DataSet dsLogin;

blnLoginSucessful = false;

CustomerEngine.Customer objWebservice;

string strError;

strError = "OK";

objWebservice = new CustomerEngine.Customer();

try

{

dsLogin = objWebservice.PinNumberLogin(PinNumber,strError);
blnLoginSucessful = true;


Jul 25 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Kristof Thys | last post by:
Hello, I'm developing a C# - windows forms application. To get some information for my application, I'm connecting to an URL, wich gives me XML generated using php. With 90% of the users, this...
1
by: wanglei | last post by:
hi there i am trying to consume a simple hello world webservice on my PDA, I keep get this error : unable to connect to the remote server , i am using the address...
3
by: Monty | last post by:
OK, I had an issue with this and found lots of advice that did not apply, so I'm posting what I found hoping it might help someone else. Here's the sitch: you have a COM app that calls to a .Net...
3
by: nandan | last post by:
Yes. My client has a proxy server. That much i know. In my application I make two kinds of calls that are affected by the proxy server I finally got the webservice call working. But my...
1
by: MSK | last post by:
Hi, I am a newbie to .NET/Networking if I develop a project in 1. VB.NET + SQL server database 2. ASP.NET + SQL server database 3. .NET ( vb or asp) + Access database
0
by: troubleswithaspscripts | last post by:
hi all, We have a third party WebService that is hosted in a remote server. It exposes some Web Methods to be consumed by our C# .Net Application. When I access the wsdl of the WebService it is...
0
by: Homer | last post by:
Hi, I got "InnerException: Unable to connect to remote server"..."No connection could be made because the target machine actively refused it" when I attempted to send an email through my...
0
sivisr
by: sivisr | last post by:
Hi I want to connect my vb.net Windows application (C#) with remote server, i use the follwing coding.it says "SQL Server does not exist or access denide" . SqlConnection con = new...
6
by: Patrick.Simons | last post by:
I try to connect a FTPWebRequest through Proxy and VPN to a remote FTP- server. Sometimes it works sometimes not. When my VB.Net-App (2005) returns the error on the GetResponse-Method, I'll try to...
0
by: =?Utf-8?B?dG9t?= | last post by:
Hi, I have a .net 2.0 windows client that connects to webservices. In most cases it works fine. However I have one client that gets 'Unable to connect to the remote server'. If on that client...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.