473,830 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Web Exception' 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 1672
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***@removethi s.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***@removethi s.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***@removethi s.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
5964
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 in Visual Studio to create reports and labels as it's in Access?` The advantage of VS.net is that not every user needs Access, right? And that would eliminate the Access version problem as well I guess.
10
8215
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 obviously change once the program's fully built to actually do something, but for testing, it works). The only code I added to the service is below:
4
4483
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 tried to attached a class to a dialog or screen, I found out that I am only able to add MFC class like CDialog. I can not attach ..NET class like WindowForm. So my question is that do we have some way to convert a dialog defined in .rc file to one...
8
2713
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 framework 1.1 and web matrix is used for asp .net code
3
1468
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. Authentication method) in IIS metabase is still applied before the HTTP request reach my ASP.NET application. Anyone one can explain this for me? or point to an article that explains: when a user requests an ASP.NET
2
2332
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) object hosted in IIS which can be xml web service ,NET remoted object,singleton and support COM+ transaction management all in the same time
4
3617
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 been set for windows authentication and both the ASP web application and the web services are using windows authentication with impersonation of the logged on user. We also set the web service credentials to CredentialCache.DefaultCredentials. ...
8
9306
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 possibility, please let me know how to do it.
1
1147
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 remote position. i dont want to use offline CRM/outlook functionality. Can i access MS CRM 3 online from anywhere on internet. Please explain.
0
9642
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10774
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10525
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9314
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6950
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5617
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5780
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4411
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3076
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.