473,385 Members | 2,274 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,385 software developers and data experts.

Can't access internet web services from windows app

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

Aug 20 '06 #1
3 1653
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
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Aug 20 '06 #2
I disabled the firewall entirely and it did not help.

Jani Järvinen [MVP] wrote:
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
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Aug 21 '06 #3
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
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Aug 21 '06 #4

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

Similar topics

63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
10
by: Clint | last post by:
Hey all - I'm having a really confusing problem concerning a web service. Right now, I have an application that needs to call a web service that does nothing but return "true" (this will...
4
by: nick.n.xu | last post by:
Not sure if this question was posted before. When I loaded an app.rc file from VC++ 6.0 to VC .NET 2003, I can see all screens in resource view. But when I right-clicked and did 'add a class' and...
8
by: Vanga Sasidhar | last post by:
I have four computers. One computer - Win XP Two computers - Win 98 One computer - Win ME I designed some pages in my computer having Win XP operating system. I installed dot net...
3
by: Michael Tsai | last post by:
Hi, It said that IIS 6 use HTTP.sys as the front end for handling HTTP request, and pass ASP.NET requests to w3wp.exe, but after some simple experiments, I found the security settings (e.g....
2
by: Julia | last post by:
Hi, Can a Remote object be a WebService as well? i want to able to connect to a remote object either using .NET remoting and HTTP\SOAP so I wonder if I can create a singleton(statefull)...
4
by: TrinityPete | last post by:
Hi all, We have a web application that uses web services for data access and retrieval. The web app and web services reside under IIS on the same server(WIN2003). The virtual directories have...
8
by: Sree | last post by:
hello friends, Can i make a C program run as as background service? for eg. like the windows services we have. which are not visible on the desktop but still running behind. If there is some...
1
by: uMar Khan | last post by:
Hi All, if i have a implementation of MS CRM 3 in my office. All users of CRM can access it from within the LAN through windows authentication. How can they access it from their home or some...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.