System.InvalidCastException in SoapMessageAccessClientExtension in SoapHttpClientProtocol.Serialize method

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Ben Reid (benedict_at_memia.com)
Date: 02/26/04


Date: 26 Feb 2004 07:23:22 -0800

Hi,

We have a system which calls a number of third party web services (all
on the same remote server). The system passed all tests and went into
production with real-world users and very soon (within an hour or so)
we started intermittently receiving the following exception message
when calling web services:

System.InvalidCastException: Specified cast is not valid.
   at {OurNameSpace}.WebServices.SoapMessageAccessClientExtension.StoreRequestMessage(SoapMessage
message)
   at {OurNameSpace}.WebServices.SoapMessageAccessClientExtension.ProcessMessage(SoapMessage
message)
   at System.Web.Services.Protocols.SoapMessage.RunExtensions(SoapExtension[]
extensions)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Serialize(SoapClientMessage
message)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)

The system then continued to return this error message on every Web
service call until the App context (executing inside a COM+ DLLHOST
process) is reset, after which it continues correctly for another
indefinite period and falls over again.

We have been investigating this for a couple of weeks now, and it
appears that none of the parameters we are passing in cause the
application to throw this exception in any repeatable manner. (ie the
cause is environmental and cumulative.)

Has anyone else seen anything like this?

[To complicate matters further, our application runs on .NET 1.1, but
the web services are hosted on .NET 1.0].

Your comments are appreciated in advance.

Cheers

Ben Reid



Relevant Pages

  • Web Services SSL and SharePoint
    ... I am currently writing a windows application on a remote server to my ... SharePoint server. ... utilising some of the web services provided with SharePoint 2003 and also ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: PlatformNotSupportedException
    ... Web services? ... Remoting? ... make sure you're running the same version of the .NET Framework on ... > DataSet from my remote server. ...
    (microsoft.public.dotnet.framework)
  • Re: Does Client window that consume web service require to have IIS?
    ... Here is the error client machine is getting when try to call web services ... System.Net.WebException: The Underlying connection was closed: Unable to connect to the remote server. ...
    (microsoft.public.dotnet.framework.webservices)