Dato questo codice
ottengo l'errore 'Object reference not set to an instance of an object'codice:Sub Session_End(ByVal sender As Object, ByVal e As EventArgs) 'Return ' Generato alla fine della sessione Application.Lock() Dim asd As List(Of String) = TryCast(Application("utenti_collegati"), List(Of String)) If asd IsNot Nothing Then Dim utente As String = TryCast(Session("utente"), String) If utente IsNot Nothing Then asd.Remove(utente) Application.Remove("utenti_collegati") Application.Add("utenti_collegati", asd) End If End If Application.UnLock() End Sub
mi aiutate a capire dove sbaglio?![]()
![]()

Rispondi quotando