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

WinForms application fails making SOAP call on users desktop insidecorporate network.

I'm in a situation where it's difficult to get on-site and
troubleshoot, so I'm looking for scenarios from those experienced on
what might be causing this problem.

I have a .NET 2.0 WinForms based application that that has a few web
references. The application makes the first web service/SOAP call when
the user first launches the app to submit product registration
information. The user is getting an generic "network error message"
that I've created to display when a general Exception is thrown, the
only thing I can confirm is the exception is being thrown when the web
service call is being made.

This application has been tested on many different systems with varied
configurations with no problems, so I assume it's something blocking
the application from port 80.

If you had to troubleshoot this issue without being able to "remote
in" or go on site and you could only use very little of the end users
time to troubleshoot the problem what would your approach be?
Sep 4 '08 #1
6 2376
"JDeats" <Je**********@gmail.comwrote in message
news:5d**********************************@a3g2000p rm.googlegroups.com...
I have a .NET 2.0 WinForms based application that that has a few web
references. The application makes the first web service/SOAP call when
the user first launches the app to submit product registration
information. The user is getting an generic "network error message"
that I've created to display when a general Exception is thrown, the
only thing I can confirm is the exception is being thrown when the web
service call is being made.

This application has been tested on many different systems with varied
configurations with no problems, so I assume it's something blocking
the application from port 80.

If you had to troubleshoot this issue without being able to "remote
in" or go on site and you could only use very little of the end users
time to troubleshoot the problem what would your approach be?
I'd design the application so that it has a detailed log facility that could
be enabled easily (command-line switch, config file, or some checkbox in
Options->Advanced) in the first place, explain the end user how to enable
it, and ask for the logs :)

Seriously though, that's precisely why you should at least log details of
every exception that gets thrown, even if you don't show all the gory bits
to the user.

If you don't have the logs, then there isn't much that can be done there.
You could ask them to open the same web service URL in the browser, and see
if they get any error - if it's a connectivity or authentication issue, it
might clear things up.

Alternatively, you could quickly whip up a simple test client for the web
service that'd make the call and log every bit, give it to them, and ask to
run it.
Sep 4 '08 #2
"JDeats" <Je**********@gmail.comwrote in message
news:5d**********************************@a3g2000p rm.googlegroups.com...
I'm in a situation where it's difficult to get on-site and
troubleshoot, so I'm looking for scenarios from those experienced on
what might be causing this problem.

I have a .NET 2.0 WinForms based application that that has a few web
references. The application makes the first web service/SOAP call when
the user first launches the app to submit product registration
information. The user is getting an generic "network error message"
that I've created to display when a general Exception is thrown, the
only thing I can confirm is the exception is being thrown when the web
service call is being made.

This application has been tested on many different systems with varied
configurations with no problems, so I assume it's something blocking
the application from port 80.

If you had to troubleshoot this issue without being able to "remote
in" or go on site and you could only use very little of the end users
time to troubleshoot the problem what would your approach be?
I presume that your program is connecting from inside the corporate
intranet to a server that sits on the Internet. The first question would be,
"Can the users navigate the Internet from their desktops?" In that case, how
is their browser configured? For instance, if the browser is configured to
go through a Proxy, you have to configure your web service client to go
through the same Proxy. And if the proxy requires the user's credentials,
your code has to provide the same credentials when using the proxy.
If they are going through a corporte firewall, maybe it only allows
access to a limited set of servers. Make sure that the firewall is not
blocking access to your server. You can verify this by way of instructing a
user to open a browser and navigate to a web page on the same server that
hosts the webservice. Unfortunately, if it doesn't work, there is nothing
you can do in your code to fix it; the network administrators on the client
site would need to get involved.

Sep 4 '08 #3
On Sep 4, 9:28 am, "Pavel Minaev" <int...@gmail.comwrote:
"JDeats" <Jeremy.De...@gmail.comwrote in message

news:5d**********************************@a3g2000p rm.googlegroups.com...
I have a .NET 2.0 WinForms based application that that has a few web
references. The application makes the first web service/SOAP call when
the user first launches the app to submit product registration
information. The user is getting an generic "network error message"
that I've created to display when a general Exception is thrown, the
only thing I can confirm is the exception is being thrown when the web
service call is being made.
This application has been tested on many different systems with varied
configurations with no problems, so I assume it's something blocking
the application from port 80.
If you had to troubleshoot this issue without being able to "remote
in" or go on site and you could only use very little of the end users
time to troubleshoot the problem what would your approach be?

I'd design the application so that it has a detailed log facility that could
be enabled easily (command-line switch, config file, or some checkbox in
Options->Advanced) in the first place, explain the end user how to enable
it, and ask for the logs :)

Seriously though, that's precisely why you should at least log details of
every exception that gets thrown, even if you don't show all the gory bits
to the user.

If you don't have the logs, then there isn't much that can be done there.
You could ask them to open the same web service URL in the browser, and see
if they get any error - if it's a connectivity or authentication issue, it
might clear things up.

Alternatively, you could quickly whip up a simple test client for the web
service that'd make the call and log every bit, give it to them, and ask to
run it.
Thanks, the application does have a log switch and I have buit small
test applications as the one you describe before to isolate the
problem.... The problem is I am not able to take these sort of steps
with this user.


Sep 4 '08 #4
On Sep 4, 9:36 am, "Alberto Poblacion" <earthling-
quitaestoparacontes...@poblacion.orgwrote:
"JDeats" <Jeremy.De...@gmail.comwrote in message

news:5d**********************************@a3g2000p rm.googlegroups.com...
I'm in a situation where it's difficult to get on-site and
troubleshoot, so I'm looking for scenarios from those experienced on
what might be causing this problem.
I have a .NET 2.0 WinForms based application that that has a few web
references. The application makes the first web service/SOAP call when
the user first launches the app to submit product registration
information. The user is getting an generic "network error message"
that I've created to display when a general Exception is thrown, the
only thing I can confirm is the exception is being thrown when the web
service call is being made.
This application has been tested on many different systems with varied
configurations with no problems, so I assume it's something blocking
the application from port 80.
If you had to troubleshoot this issue without being able to "remote
in" or go on site and you could only use very little of the end users
time to troubleshoot the problem what would your approach be?

I presume that your program is connecting from inside the corporate
intranet to a server that sits on the Internet. The first question would be,
"Can the users navigate the Internet from their desktops?" In that case, how
is their browser configured? For instance, if the browser is configured to
go through a Proxy, you have to configure your web service client to go
through the same Proxy. And if the proxy requires the user's credentials,
your code has to provide the same credentials when using the proxy.
If they are going through a corporte firewall, maybe it only allows
access to a limited set of servers. Make sure that the firewall is not
blocking access to your server. You can verify this by way of instructing a
user to open a browser and navigate to a web page on the same server that
hosts the webservice. Unfortunately, if it doesn't work, there is nothing
you can do in your code to fix it; the network administrators on the client
site would need to get involved.
Thanks, good tips! While it seems an obvious No for security reasons,
I'm curious if there is a way to extract Proxy settings from Internet
Explorer programmaticly and then use those properties to set up my web
service? If not, the answer seems to be, build proxy server
configuration into the application and having someone from helpdesk/
support come to each user who installs the application and configure
proxy server settings.

The joys of corporate network infrastructure.



Sep 4 '08 #5
"JDeats" <Je**********@gmail.comwrote in message
news:ad**********************************@w39g2000 prb.googlegroups.com...
I'm curious if there is a way to extract Proxy settings from Internet
Explorer programmaticly
I'm not aware of an API to get those values, but they get written into
the Windows Registry, so you could read them from there.
and then use those properties to set up my web
service?
Using them to set up your web service client should be easy. When you
create an instance of the class that acts as a proxy for your web service
(don't get confused by the fact that the class is called a "proxy" at the
same time that communications go through a "proxy" server), it has a
property called Proxy where you can assign a WebProxy constructed from the
configured values.
If not, the answer seems to be, build proxy server
configuration into the application and having someone from helpdesk/
support come to each user who installs the application and configure
proxy server settings.
Even if you are reading the default settings from the Registry, it would
still be a good idea to build a configuration tool into your application, in
case it needs to be configured differently than Internet Explorer (for
instance, if it needs to use a different proxy for security reasons, or if
you need to supply fixed user credentials rather than using the current
Windows user).
Sep 4 '08 #6
"JDeats" <Je**********@gmail.comwrote in message
news:ad**********************************@w39g2000 prb.googlegroups.com...
On Sep 4, 9:36 am, "Alberto Poblacion" <earthling-
quitaestoparacontes...@poblacion.orgwrote:
>"JDeats" <Jeremy.De...@gmail.comwrote in message

news:5d**********************************@a3g2000 prm.googlegroups.com...
I'm in a situation where it's difficult to get on-site and
troubleshoot, so I'm looking for scenarios from those experienced on
what might be causing this problem.
I have a .NET 2.0 WinForms based application that that has a few web
references. The application makes the first web service/SOAP call when
the user first launches the app to submit product registration
information. The user is getting an generic "network error message"
that I've created to display when a general Exception is thrown, the
only thing I can confirm is the exception is being thrown when the web
service call is being made.
This application has been tested on many different systems with varied
configurations with no problems, so I assume it's something blocking
the application from port 80.
If you had to troubleshoot this issue without being able to "remote
in" or go on site and you could only use very little of the end users
time to troubleshoot the problem what would your approach be?

I presume that your program is connecting from inside the corporate
intranet to a server that sits on the Internet. The first question would
be,
"Can the users navigate the Internet from their desktops?" In that case,
how
is their browser configured? For instance, if the browser is configured
to
go through a Proxy, you have to configure your web service client to go
through the same Proxy. And if the proxy requires the user's credentials,
your code has to provide the same credentials when using the proxy.
If they are going through a corporte firewall, maybe it only allows
access to a limited set of servers. Make sure that the firewall is not
blocking access to your server. You can verify this by way of instructing
a
user to open a browser and navigate to a web page on the same server that
hosts the webservice. Unfortunately, if it doesn't work, there is nothing
you can do in your code to fix it; the network administrators on the
client
site would need to get involved.

Thanks, good tips! While it seems an obvious No for security reasons,
I'm curious if there is a way to extract Proxy settings from Internet
Explorer programmaticly and then use those properties to set up my web
service? If not, the answer seems to be, build proxy server
configuration into the application and having someone from helpdesk/
support come to each user who installs the application and configure
proxy server settings.

The joys of corporate network infrastructure.
I support a similar application. It works just fine with no proxy
configuration here at work going through the corporate proxy, and at home,
going through my ISP. Either way it works. As suggested earlier, have the
end user open a browser and see if they can hit the web service wsdl.
Sep 4 '08 #7

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

Similar topics

14
by: Wolfgang Keller | last post by:
Hello, as a non-developer I am currently participating in an industrial "research" project to develop a so-called "web application". This application serves at the same time as middleware to...
25
by: David Noble | last post by:
We've been developing a web site using 3-tier architecture for 18 months now. There is a common layer that defines the classes - using XML schemas. The data layer acts as a wrapper to 3 databases...
3
by: Varkey | last post by:
Dear friends, I am new to .NET based app development and have a pretty elementary query, I suppose... I have caught up with the basics of .NET pretty well, thanks to some Microsoft VB/ASP...
0
by: sean | last post by:
From a parent process, I created a custom windows station and desktop. I then CreateProcess using that new station/desktop. There are no problems launching a plain windows app with this...
4
by: Elhanan | last post by:
hi.. all a client of ours is considering to move from a dos application to windows desktop application. the application is for traveling agency, the database is rather large. their current...
4
by: 3Cooks | last post by:
I have a windows application written in Visual Basic 6.0 that is going to be redeveloped in dotNET. We are trying to decide if we should deploy using Webforms or Winforms and I need advice from...
5
by: brian.wilson4 | last post by:
Our group is currently comparing winforms vs webforms.....app is Corp LAN based - we have control of desktops.....Below is pros and cons list we have come up with - if anything strikes you as...
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
23
by: raylopez99 | last post by:
Here I am learning WinForms and two months into it I learn there's a WPF API that is coming out. Is this WPF out yet, and is it a threat to WinForms, in the sense that all the library routines I...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.