On Friday, October 21, 2011, Stefan Bodewig <bode...@apache.org> wrote: > On 2011-10-21, John Moreno wrote: >> I was using the 1.2.10 codebase and .net 4.0, but I have switched over >> to the 1.2.11 version, and I am still getthing the same exception from >> the call to the XmlConfigurator.Configure. > > Is this the official binary or did you compile it yourself? If using > the official binary, make sure you have the .NET 4.0 one. If you > compile it yourself, ensure you define the NET_4_0 compilation symbol.
This is the official binary, from the 4.0 directly. It is being built on a new VM, which hasn't previously had log4net installed and being ILMerged and the deployed to a MS CRM server. > One other thing to look out for is the GAC (you may still be using > 1.2.10). I had previously put the 1.2.10 binary on the sever, but not in the GAC. > The exception occurs as the GetObjectData method of ISerializable needs > a SecurityCritical attribute attached to it now and this only happens if > the code is compiled for 4.0 - and knows that it is. I'll look into that a bit before giving up.