> Exception Details: System.InvalidCastException: Specified 
> cast is not valid.
> 
> Source Error: 
> 
> Line 136:             {
> Line 137:                     ok = false;
> Line 138:                     customer = (Customer)
> control.getLoginData().getParticipantData();
> Line 139:                     ok = customer.closeTicket();
> Line 140:                     if(ok == true)
> 
> 
> Dabei ist Customer eine abgeleitete Klasse von Participant.

Also... Wenn getParticipantData() ein Participant zur�ckliefert, der
halt kein Customer ist, also z.B. ein Participant oder eine Klasse, die
von Particpant abgeleitet ist, aber nicht Customer ist, dann funzt das
nicht...

Du kannst einen Customer immer zu Participant casten, aber andersherum
nur, wenn der Participant auch wirklich ein Customer ist...


Claudius

_______________________________________________
Asp.net mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/asp.net

Antwort per Email an