Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting the creation of an object
Message
From
24/02/2004 16:12:24
 
 
To
24/02/2004 16:04:46
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00880446
Message ID:
00880478
Views:
30
OK, lemme try again:
Dim loContext As SoapContext
loContext = HttpSoapContext.ResponseContext
If Not loContext Is Nothing Then
  'rest of your code here
End If
~~Bonnie


>>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.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform