Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting the creation of an object
Message
From
24/02/2004 15:52:03
 
 
To
24/02/2004 15:41:15
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00880446
Message ID:
00880463
Views:
25
>>Can't you just test if loContext is nothing?
>
>Do you have a small sample on that one?

Michel,

You forgot to instantiate the object. Here's the correct code (plus the checking for nothing if you still want to do that):
Dim loContext As SoapContext
loContext = New SoapContext()
If Not (loContext Is Nothing) Then
   loContext = HttpSoapContext.ResponseContext
End If
~~Bonnie
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