473,385 Members | 1,372 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,385 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 9501
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.