472,954 Members | 1,851 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,954 software developers and data experts.

Webservice works on the browser but not from C# app

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.Ge tWebResponse(WebRequest
request)
at System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.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.Ge tWebResponse(WebRequest
request)
at System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.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
Nov 21 '05 #1
3 9481
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: ks****@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: <72**************************@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: gr**********@google.com
NNTP-Posting-Date: Fri, 12 Nov 2004 17:32:56 +0000 (UTC)
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!newsfeed.icl.net!proxad.net!216.239.36.1 34.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.Ge tWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebReques
t
request)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.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.Ge tWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebReques
t
request)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.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

Nov 23 '05 #2
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.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
From: ks****@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: <72**************************@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: gr**********@google.com
NNTP-Posting-Date: Fri, 12 Nov 2004 17:32:56 +0000 (UTC)
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!newsfeed.icl.net!proxad.net!216.239.36.1 34.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.Ge tWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebReques
t
request)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.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.Ge tWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebReques
t
request)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.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

Nov 23 '05 #3
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: <72**************************@posting.google.com >
<h7**************@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: <D3**********************************@microsoft.co m>
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.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
From: ks****@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: <72**************************@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: gr**********@google.com
NNTP-Posting-Date: Fri, 12 Nov 2004 17:32:56 +0000 (UTC)
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s ul.t-online.de!t-online.de!newsfeed.icl.net!proxad.net!216.239.36.1 34.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.Ge tWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebReques t
request)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.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.Ge tWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebReques t
request)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.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


Nov 23 '05 #4

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

Similar topics

2
by: Ravi | last post by:
Hi, I have a small HTML page which posts requests to a web service. I am using a IFRAME for that so that the entire page wont reload. All is working fine except that the respose from the web...
6
by: Davie | last post by:
I want to authorise a user of a web service by using the AuthHeaderValue for some reason I keep getting a null reference exception when I try to run the following code: It seems to work fine on a...
1
by: Erik | last post by:
Does anyone know why this happens? When returning the XML string through the webservice the XML string is filled with escape characters: XML string before webservice transfer: <Node...
6
by: Jan | last post by:
For an educational program I use a webservice for acces to a central database on a remote server. The webservice is is being accessed over https. So far this worked fine on the computersystems in...
2
by: Rossco | last post by:
I have a VB.NET serviced component (COM+), running on a lan, that calls out to an external web service to place an order with a supplier. The problem machine is the middle tier (COM+) for our in...
2
by: Lumen | last post by:
hi, I've got a webproject that calls a webservice 4 times to check information in an CRM system. These checks are made in an asynchronous process. These processes call an instance of the...
7
by: Robbert van Geldrop | last post by:
Hello, I have a problem in a C# client that consumes a webservice which is wrapped by WSE 2.0 sp3: The WebService works fine but very rarely my client comes in a state where every call to the...
0
by: hammerjack | last post by:
401 Access Denied: Athentication Polices; <authentication> <identity impersonate="true" /> authentication/> <authorization> <allow users="*" /> <!-- Allow all users --> <authorization.>
3
by: tim.cavins | last post by:
We have a page on our Intranet A main.aspx that is calling a webservice on another computer B. The intranet page loads fine and displays the data from the webservice but we keep getting error...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
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...

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.