Re: Type Load failure in Web Service Client

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Chance Hopkins" <chance_hopkins@xxxxxxxxxxx> wrote in message
news:%236qDO4GfFHA.1284@xxxxxxxxxxxxxxxxxxxxxxx
>
> "Nathan Mellor" <nmNOSPAMXX$$@hp.com> wrote in message
> news:e0nMc9FfFHA.2644@xxxxxxxxxxxxxxxxxxxxxxx
>>A customer has reported a failure in calling a web service:
>>
>> Cound not load type
>> System.Web.Services.Protocols.Soap HttpClientProtocol
>> from assembly System.Web.Services, Version=1.0.5000.0,
>> Culture= neutral PublicKeyToken=......
>
> I get errors that are similar to this, sometimes, using a TcpClient when
> calling a connection that fails.
>
> one possible solution is to wrap the call with a try catch and handle it
> in a "friendly manner". Just ask them to click again.

Thanks.

This makes some sense when I look at the generated code. The derived
contructor sets the URL. If the base constructor is checking for something,
it could fail. A TypeLoad can definitely happen if a constructor throws an
exception.

I'll try failing gracefully and give a chance for retry, since there is a
number of things that can go wrong here.

Nathan




.



Relevant Pages

  • Re: ExitWindowsEx function not working.
    ... you should always check the API return value ... to determine if the API calling fails. ... As Int32, ByVal dwreserved As Int32) As Int32 ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Win32 in an x64 world
    ... Nobody wrote: ... I am not sure if it fails for other users. ... I am calling it for the same user. ... standard EXE as SYSTEM by using Task Scheduler. ...
    (microsoft.public.vb.winapi)
  • Re: set of sets
    ... the add succeeds ... the remove fails eventually not calling hash. ... Is this fast as with lists? ...
    (comp.lang.python)
  • Re: 802.1x for wired networks
    ... via 802.1x to a wired network? ... calling 80211 ioctl's and thus fails. ... I found the open1x project, but did not find it in the ports tree. ...
    (freebsd-net)
  • Re: Help with the, "this" initializer in a constructor.
    ... explicitly or not; But how you can override such ... In the case above, it's still calling the base constructor, which is calling ... derived class, ...
    (microsoft.public.dotnet.languages.csharp)