Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Webservice works on the browser but not from C# app

82 views
Skip to first unread message

subha

unread,
Nov 12, 2004, 12:32:56 PM11/12/04
to
I have a HelloWorld webservice that works on my IE browser. But, when
I add a webreference to it and call the HelloWorld method from my
WindowsFormsApp (return in C#), I get error messages. The error
messages differ depending on when I restart my machine.

RIGHT AFTER RESTART:

'WindowsApplication1.exe': Loaded 'oevrvyg9', No symbols loaded.
A first chance exception of type 'System.NullReferenceException'
occurred in system.dll

Additional information: Object reference not set to an instance of an
object.

A first chance exception of type 'System.Net.Sockets.SocketException'
occurred in system.dll

Additional information: An established connection was aborted by the
software in your host machine

A first chance exception of type 'System.IO.IOException' occurred in
system.dll

Additional information: Unable to read data from the transport
connection.

A first chance exception of type 'System.Net.WebException' occurred in
system.dll

Additional information: The underlying connection was closed: An
unexpected error occurred on a receive.

A first chance exception of type 'System.Net.WebException' occurred in
system.web.services.dll

Additional information: The underlying connection was closed: An
unexpected error occurred on a receive.

at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at WindowsApplication1.localhost.Service1.HelloWorld() in
D:\WindowsApplication1\Web References\localhost\Reference.cs:line 37
at WindowsApplication1.Form1.cmdBegin_Click(Object sender,
EventArgs e) in d:\windowsapplication1\form1.cs:line 97

SECOND TIME:

Additional information: The operation has timed-out.

A first chance exception of type 'System.Net.WebException' occurred in
system.dll

Additional information: The operation has timed-out.

A first chance exception of type 'System.Net.WebException' occurred in
system.web.services.dll

Additional information: The operation has timed-out.

at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at WindowsApplication1.localhost.Service1.HelloWorld() in
D:\WindowsApplication1\Web References\localhost\Reference.cs:line 37
at WindowsApplication1.Form1.cmdBegin_Click(Object sender,
EventArgs e) in d:\windowsapplication1\form1.cs:line 97

Dan Rogers

unread,
Dec 3, 2004, 7:44:22 PM12/3/04
to
I think you need to debug the web method code to see where you are
generating the null reference exception.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
From: ksu...@gmail.com (subha)
Newsgroups: microsoft.public.dotnet.framework.webservices
Subject: Webservice works on the browser but not from C# app
Date: 12 Nov 2004 09:32:56 -0800
Organization: http://groups.google.com
Lines: 73
Message-ID: <7217b21f.04111...@posting.google.com>
NNTP-Posting-Host: 163.188.94.164
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1100280776 1539 127.0.0.1 (12 Nov 2004 17:32:56
GMT)
X-Complaints-To: groups...@google.com
NNTP-Posting-Date: Fri, 12 Nov 2004 17:32:56 +0000 (UTC)
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!newsfeed.icl.net!proxad.net!216.239.36.134.MISMAT
CH!postnews.google.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7405
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

subha

unread,
Dec 6, 2004, 8:22:22 PM12/6/04
to
Dan,

Thanks for the mail. An actual person from Microsoft Tech support found that
one of my installed applications was interfering with IIS for some reason.
When I uninstalled that application and restarted, my application started
reaching the webservice.

He found this by generating hang dumps and analyzing the hang dumps. I
wonder how others having similar problems would have found this.

Regards
Subha

Dan Rogers

unread,
Dec 7, 2004, 4:35:43 PM12/7/04
to
Hi Subha,

Which application was interfering?

Dan
--------------------
Thread-Topic: Webservice works on the browser but not from C# app
thread-index: AcTb+zOGv0iFZBl6SFisQkhjAOnqVQ==
X-WBNR-Posting-Host: 68.91.114.114
From: "=?Utf-8?B?c3ViaGE=?=" <su...@discussions.microsoft.com>
References: <7217b21f.04111...@posting.google.com>
<h74EopZ2...@cpmsftngxa10.phx.gbl>
Subject: RE: Webservice works on the browser but not from C# app
Date: Mon, 6 Dec 2004 17:22:22 -0800
Lines: 125
Message-ID: <D3DC6A1B-61F7-4A16...@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7927
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

0 new messages