473,406 Members | 2,894 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,406 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 2385
"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
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...
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.