>I don't know VB syntax, sorry. I used the two C#-to-VB converters to create the code snippet, and they both produced the same code. Anyway, the problem is that you need to instantiate the loContext object and you haven't done that. You've just defined it as SoapContext.
I can't find what I have to do. All the samples I have seen on the .NET does it like that.
Even if I make reference directly such as:
HttpSoapContext.ResponseContext.Attachments.Clear()
It stills say the same error.