Can't access internet web services from windows app

P

Paul

I cannot seem to get an answer to this problem. Hopefully somebody
here can help.
I am using .net 1.1 wit sp1 under windows xp pro.
I can't access any web services on the internet from a windows
application.
If the web service is on my localhost I can access it.
I can access an internet web service from a webapp but cannot access
the same web service from a windows app.

Using a simple win app provided with the google api and I get

"An unhandled exception of type 'System.Net.WebException' occurred in
system.dll. Additional information: The underlying connection was
closed: Unable to connect to the remote server."


However, I can access the above google web service via a web app.

Surely someone must know something about this.

Thanks in advance
Paul
 
J

Jani Järvinen [MVP]

Paul,
I can access an internet web service from a webapp but cannot access
the same web service from a windows app.

To me this sounds like some kind of security issue outside .NET and your
application. Do you have a (desktop) firewall in place on your PC or
network? If yes, is it locked so that non-admin-approved applications cannot
access the network?

Especially in larger organizations, it is quite common to configure security
policies so that applications that aren't already on the "white list" cannot
access the Internet. This prevents rogue applications from using your PC to
send spam, for example.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
(e-mail address removed)
http://www.saunalahti.fi/janij/
 
J

Jani Järvinen [MVP]

Paul,
I disabled the firewall entirely and it did not help.

Then there is something else going on in your PC and/or network. The
exception "The underlying connection was
closed" could be caused by the server (which is most likely), but also any
network component in between.

Try testing the web service with your web browser, or try to write a simple
WinForms application that simply calls the service. If these work, then
there is something with your web service application that doesn't work.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
(e-mail address removed)
http://www.saunalahti.fi/janij/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top