http://bugzilla.novell.com/show_bug.cgi?id=619929
http://bugzilla.novell.com/show_bug.cgi?id=619929#c0 Summary: System.InvalidCastException Classification: Mono Product: Mono: Runtime Version: SVN Platform: 64bit OS/Version: RHEL 5 Status: NEW Severity: Major Priority: P5 - None Component: misc AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; MS-RTC LM 8) starting around june 24, I started getting Invalid cast exceptions and they seem to all be when doing a foreach using the KeyValuePair class iterating on a dictionary. The strange thing is , when I recompile the specific project and rerun the test then the error goes away. Then recompile the whole solution and the error comes back so trying to debug and tracking it down is really challenging so hopfully something can be figured out from this information. The june24 build works ok but builds after that is causing this error so hofully something can be figured out from this this is causing the error: private readonly IRelationshipDictionary<string, IArray> m_propertyNameToArrayMap = new RelationshipDictionary<string, IArray>(); foreach (KeyValuePair<string, IArray> pair in m_propertyNameToArrayMap) error generated on the foreach: Drms.Server.DomainModel.Subsurface.Test.AquiferTest.TestSimpleReservoirWithAquifer : System.InvalidCastException : Cannot cast from source type to destination type. recompiling the project and the error goes away. Recompiling all the projects and the errors come back. when I run all our tests, Ill sometimes get 100 test faiures, other times I will get 40 test failures so these cast errors seem to very random in nature but the common thing seems to be related to using the KeyValuePair<> class. Reproducible: Sometimes Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
