Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Runtime error after compiling with .NET 4.0
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Otto Giesenfeld  
View profile  
 More options Jul 26 2010, 4:04 pm
From: Otto Giesenfeld <otto.giesenf...@halvarsson.se>
Date: Mon, 26 Jul 2010 13:04:10 -0700 (PDT)
Local: Mon, Jul 26 2010 4:04 pm
Subject: Runtime error after compiling with .NET 4.0
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »