Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2006

Tip: Looking for answers? Try searching our database.

Connectiing to WebService problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sergey Poberezovskiy - 29 Dec 2005 03:52 GMT
Hi,

My VB.Net (1.1) application connects to ASP.Net (1.1) WebService that
resides on ISP Server. My client successfully runs this application from 4
out of their 5 PCs. On that one PC I receive the following error whenever I
call a
method of the service:

System.Net.WebException: The underlying connection was closed: An unexpected
error occurred on a send.

The procedure that fails is as follows:

   Public Shared Function GetService() As MyService.MyService
       Dim ws As MyService.MyService = New MyService.MyService
       With ws
           .CookieContainer = New CookieContainer
           .Proxy = New System.Net.WebProxy
           Dim cr As CredentialCache = New CredentialCache
           .Proxy.Credentials = cr.DefaultCredentials
           '  The following call fails
           .Authenticate(UserName, Password)
       End With
       Return ws
   End Function

Any ideas why would the same code not work on one PC only - what I should  
be looking for to rectify the error?

Any help is greatly appreciated - the client wants me to have it fixed
before the New Year...
Cowboy (Gregory A. Beamer) - MVP - 29 Dec 2005 21:02 GMT
Try Fiddler to watch the HTTP connections when working and not:
http://www.fiddlertool.com/fiddler/

This will give you a place to look for what is going on. Watch the user that
is connecting, as well as the actual request.

It is also possible that Internet Explorer is set up differently on this
box. The settings in IE cascade through the entire HTTP stack in some places
and can cause issues. That would be another place to look.

If you client has a proxy the "Bypass proxy for local connections" should be
checked for a web service on the internal network.

Signature

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

> Hi,
>
[quoted text clipped - 27 lines]
> Any help is greatly appreciated - the client wants me to have it fixed
> before the New Year...
Sergey Poberezovskiy - 08 Jan 2006 06:42 GMT
Gregory,

1. Not sure how to set up the fiddler to "listen" to web service requests
from .Net applications - saw similar cry from their website's discussions
with no answer...

2. Tried to replicate the request directly from the fiddler - works like a
charm on other computers, but returns Result: 0 and Session State: Aborted on
the one with the problem - and no Response. Not sure how I can use this
information...

3. IE seems to have pretty much the same settings - as far as I know, they
are standard within the organization, and have not been modified since...

4. Web service is on the Internet - do not think that "Bypass proxy for
local connections" could have anything to do with that...

Any help?...

> Try Fiddler to watch the HTTP connections when working and not:
> http://www.fiddlertool.com/fiddler/
[quoted text clipped - 40 lines]
> > Any help is greatly appreciated - the client wants me to have it fixed
> > before the New Year...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.