Hi,
I have compiled the current version of the library with the
Microsoft.NET Framework 4.0 compiler and received the following
runtime error when attempting to execute som library functions:
Inheritance security rules violated while overriding member:
'Google.GData.Client.GDataRequestException.GetObjectData(System.Runtime.Ser ialization.SerializationInfo,
System.Runtime.Serialization.StreamingContext)'. Security
accessibility of the overriding method must match the security
accessibility of the method being overriden.
After searching for information, I found a tip about adding the
following line to clients/cs/src/AssemblyInfo.cs:
[assembly:
System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)]
This solved the problem.
However, the addition of that line effectively turns on some sort of
backwards-compatibility mode, and it may therefore be inappropriate to
include it into the GData .NET library. I have not made any attempts
to understand the underlying cause of the error, or whether it is even
possible to correct it without using objects or language constructs
that are unique to .NET 4.0. But if nothing else, it may be a good
idea to have some "#if" conditionals with code to make the code work
under 4.0.
Just an idea, in case someone knows enough about this issue to be able
to fix it reasonably easily...
Best regards,
Otto Giesenfeld