invalid Program exception sur une requête en Linq
Salut a tou(te)s!
voila j'ai une fonction avec une requete en linq assez simple mais elle part en exception et je ne vois pas pourquoi.
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| Public Function AboServiceValideGetByEntite(ByVal DC As AMILinqClassDataContext, ByVal IdEntite As Integer) As List(Of LAbonnementEtService)
Try
Return (From ligneAbo In DC.LAbonnements _
Join ligneServ In DC.LServices On ligneAbo.IdService Equals ligneServ.Id _
Where ligneAbo.IdE = IdEntite _
Select New LAbonnementEtService(ligneAbo, ligneServ)).ToList
Catch ex As Exception
TraiteErreur("AboServiceValideGetByEntite", ex.ToString)
Return Nothing
End Try
End Function |
L'excception catchée est une invalid Program exception; avec un message = "Le Common Language Runtime a détecté un programme non valide." ? et de source = "mscorlib.dll".
Si qqun sait d'où ça vient?