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 / ASP.NET / Web Services / December 2004

Tip: Looking for answers? Try searching our database.

Webservice works on the browser but not from C# app

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
subha - 12 Nov 2004 17:32 GMT
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 - 04 Dec 2004 00:44 GMT
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: ksubha@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.0411120932.218c7414@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-abuse@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

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(WebReques
t
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(WebReques
t
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
subha - 07 Dec 2004 01:22 GMT
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

> I think you need to debug the web method code to see where you are
> generating the null reference exception.  
[quoted text clipped - 105 lines]
>    at WindowsApplication1.Form1.cmdBegin_Click(Object sender,
> EventArgs e) in d:\windowsapplication1\form1.cs:line 97
Dan Rogers - 07 Dec 2004 21:35 GMT
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=?=" <subha@discussions.microsoft.com>
References:  <7217b21f.0411120932.218c7414@posting.google.com>
<h74EopZ2EHA.3200@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-BF28-C0E0E152CAF7@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

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" wrote:

> I think you need to debug the web method code to see where you are
> generating the null reference exception.  
[quoted text clipped - 19 lines]
> 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
[quoted text clipped - 43 lines]
> request)
>    at

System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebReques
> t
> request)
[quoted text clipped - 23 lines]
> request)
>    at

System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebReques
> t
> request)
[quoted text clipped - 4 lines]
>    at WindowsApplication1.Form1.cmdBegin_Click(Object sender,
> EventArgs e) in d:\windowsapplication1\form1.cs:line 97

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.