RE: SoapException - NullReferenceException



Hi Nick,

As for webservice over SSL, there does exists some common issue such as the
client certificate supplyment(if you've configured it to require client
cert) or the server certificate of the SSL is not recognized at client
side. Since the "Null Reference" exception is quite a general one, I think
it would be better to do more tests before we look further into it:

** You can turn off SSL and access it through normal http to see whether it
works.

** As you mentioned that you can visit the asmx page via webbrowser, is
there any warning or error when you visit it through webbrowser? Some
warning (that can be suppress interactively) may cause exception when we
access it programmtically

**As Alex suggested, Eventlog is also worth checking for any useful clues.

If you have any other findings, also welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
From: "Nick" <a@xxxxx>
Subject: SoapException - NullReferenceException
Date: Tue, 20 May 2008 19:30:55 +0100

Hi there,

I have a web service running on an SSL connection and unfortunately I
can no longer invoke it, even from a test application that just calls one
method. I can see the web service definition if I browse to the asmx
file,
but I can't call it. I recieve the following SoapException,

----

System.Web.Services.Protocols.SoapException was unhandled
Actor=""
Lang=""
Message="Server was unable to process request. ---> Object reference not
set to an instance of an object."
Node=""
Role=""
Source="System.Web.Services"
StackTrace:
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClien
tMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) at
WindowsApplication1.MyServices.SomeService.someFunction()....bla bla bla

----

Unfortunately I have no idea what has caused this problem and even
redeploying the web service and re-creating the application in IIS7 it
still
does not work. Any ideas on what could have happened here? I know this
is
a very generic problem so I am greatly appreciative of any help.

Nick.




.



Relevant Pages

  • RE: SOAP .Net client wrapper questions
    ... on the client side or the web service side? ... for the web service and that didn't produce any result. ... automatic Proxy setting detection, and that seems like it might be involved. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: SSL question
    ... It has some methods which are accessible by some client applications. ... I have developed this web service with the use of SSL in my head, ... > SSL will encrypt this information. ...
    (microsoft.public.inetserver.iis.security)
  • RE: Web Service SSL
    ... \par So based on your further description, the manual test is via IE and you've got some prompt SSL credential info? ... \par Subject: RE: Web Service SSL ... \par from the job scheduler calls an asmx file. ... \par> Microsoft MSDN Online Support Lead ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: An unexpected error occurred on a send
    ... Windows Client?), so the first issue may not be the problem, but firstly, ... the COM component must be called from a STA thread, while your Web Service ... App you are calling the Web Service from, to see if it cures the problem. ... > Protocol: SSL. ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: WebException while calling Web Service over HTTPS...
    ... I verified that the Web Service is using SSL version 3 Certificates. ... I can't get any details on their server envirnoment due to ... suggest that the SSL Session between the client and the server was ...
    (microsoft.public.dotnet.framework.aspnet.webservices)