Open markusschwamberger opened 6 years ago
The error message looks like a specific problem with one of the method definitions within the file that is causing the error. Can you either:
This Method is causing the error:
`Public Shared Widening Operator CType(auftrag As AuftragObject) As Vorbeschaeftigung Dim result = New Vorbeschaeftigung result.VertragId = auftrag.VertragID result.Id = -1 result.IstVorbeschaeftigung = True result.KDID = auftrag.KDID result.KID = auftrag.KID result.MAID = auftrag.MAID ' Auftragsende muss bei alten Aufträgen nicht unbedingt befüllt sein Dim ende = If(auftrag.Vertragsende.HasValue, auftrag.Vertragsende, auftrag.MaxVertragsende) result.Zeitraum = New DateRange(auftrag.Vertragsbeginn.GetValueOrDefault(), ende.GetValueOrDefault())
Return result
End Operator
`
Thanks for providing the method. I'm not familiar with overriding operators in VB so when I just drop it into a console project it isn't valid. Can you provide a minimal solution that includes this method?
Environment
Description
Two exceptions are thrown when i try to perform Cleanup Active Document:
The .vb file has > 2000 lines of code. Smaler files work just fine...
Steps to recreate
Current behavior
Exceptions is thrown and no cleanup happend :(
Expected behavior
No exception and clean file