Re: [Mono-dev] Strange Casting bug in .net 4 profile

2010-08-19 Thread Gary Thomas
-Original Message- From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Robert Jordan Sent: 18 August 2010 17:36 To: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Strange Casting bug in .net 4 profile On 18.08.2010 17:05

Re: [Mono-dev] Strange Casting bug in .net 4 profile

2010-08-19 Thread Jb Evain
Hey Gary, On Thu, Aug 19, 2010 at 11:50 AM, Gary Thomas gary.tho...@ioko.com wrote: I think I found the root cause and it is with the machine.config file in /opt/mono/etc/mono/4.0/machine.config The configSections element in there had a sectionGroup for system.ServiceModel with references

Re: [Mono-dev] Strange Casting bug in .net 4 profile

2010-08-19 Thread Gary Thomas
Casting bug in .net 4 profile Hey Gary, On Thu, Aug 19, 2010 at 11:50 AM, Gary Thomas gary.tho...@ioko.com wrote: I think I found the root cause and it is with the machine.config file in /opt/mono/etc/mono/4.0/machine.config The configSections element in there had a sectionGroup

[Mono-dev] Strange Casting bug in .net 4 profile

2010-08-18 Thread Gary Thomas
Hi all, I have been using mono from trunk and playing with the WCF stuff when I noticed an InvalidCastException being thrown. I figured out that this only happened when using the .net 4 profile, when using .net 3.5 profile it didn't happen. I have put together a simple app to show the

Re: [Mono-dev] Strange Casting bug in .net 4 profile

2010-08-18 Thread Robert Jordan
Hey, I believe this is already fixed in trunk. It was a mismatch between the 2.0 and 4.0 System.Configuration.dll that were loaded together into the same appdomain. This means that ServicesSection defined in these assemblies were actually incompatible to each other. Robert On 18.08.2010 13:52,

Re: [Mono-dev] Strange Casting bug in .net 4 profile

2010-08-18 Thread Gary Thomas
/CastBug @ -Original Message- From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Robert Jordan Sent: 18 August 2010 13:29 To: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Strange Casting bug in .net 4 profile Hey, I

Re: [Mono-dev] Strange Casting bug in .net 4 profile

2010-08-18 Thread Gary Thomas
-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Gary Thomas Sent: 18 August 2010 15:42 To: Robert Jordan; mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Strange Casting bug in .net 4 profile There are some similar looking bugs on bugzilla

Re: [Mono-dev] Strange Casting bug in .net 4 profile

2010-08-18 Thread Atsushi Eno
@lists.ximian.com Subject: Re: [Mono-dev] Strange Casting bug in .net 4 profile There are some similar looking bugs on bugzilla but it is still happening in trunk now. I just deleted /opt/mono ran: make clean git pull ./autogen.sh --prefix=/opt/mono make sudo make install then recompiled the test

Re: [Mono-dev] Strange Casting bug in .net 4 profile

2010-08-18 Thread Robert Jordan
Thomas Sent: 18 August 2010 15:42 To: Robert Jordan; mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Strange Casting bug in .net 4 profile There are some similar looking bugs on bugzilla but it is still happening in trunk now. I just deleted /opt/mono ran: make clean git pull

Re: [Mono-dev] Strange Casting bug in .net 4 profile

2010-08-18 Thread Gary Thomas
; mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Strange Casting bug in .net 4 profile There are some similar looking bugs on bugzilla but it is still happening in trunk now. I just deleted /opt/mono ran: make clean git pull ./autogen.sh --prefix=/opt/mono make sudo make install