Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7759905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:44:41+00:00 2026-06-01T13:44:41+00:00

I have an ASP.NET MVC4 app which uses DotNetOpenAuth 4.0.1 to authenticate users with

  • 0

I have an ASP.NET MVC4 app which uses DotNetOpenAuth 4.0.1 to authenticate users with an OpenId provider (Google). All works fine on my dev machine (localhost).

However, when I deploy the web application to the server (shared hosting), I get the following error when I attempt to authenticate (specifically, when I try to create an OpenIdRelyingParty):

Inheritance security rules violated while overriding member: ‘DotNetOpenAuth.Messaging.ProtocolException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)’. Security accessibility of the overriding method must match the security accessibility of the method being overriden.

Stack Trace:

DotNetOpenAuth.Messaging.ErrorUtilities.VerifyProtocol(Boolean condition, String message, Object[] args) +0
DotNetOpenAuth.Messaging.Channel.ValidateAndPrepareBindingElements(IEnumerable`1 elements) +524
DotNetOpenAuth.Messaging.Channel..ctor(IMessageFactory messageTypeProvider, IChannelBindingElement[] bindingElements) +316
DotNetOpenAuth.OpenId.ChannelElements.OpenIdChannel..ctor(IMessageFactory messageTypeProvider, IChannelBindingElement[] bindingElements) +48
DotNetOpenAuth.OpenId.ChannelElements.OpenIdRelyingPartyChannel..ctor(ICryptoKeyStore cryptoKeyStore, INonceStore nonceStore, RelyingPartySecuritySettings securitySettings) +52
DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingParty..ctor(ICryptoKeyStore cryptoKeyStore, INonceStore nonceStore) +570
DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingParty..ctor() +65
MyProject.Controllers.OpenIdController.Authenticate(String returnUrl) in OpenIdController.cs:81
...

I have heard that DotNetOpenAuth works fine in medium trust, so I was surprised to get an error. How can I fix it? Do I need to modify the DotNetOpenAuth source code or is there a simpler way?

The question seems similar to this one but I wouldn’t know which parts of the source need editing. Also it seems strange that nobody has asked this question before with regard to DotNetOpenAuth so maybe I’m doing something wrong? Please help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T13:44:43+00:00Added an answer on June 1, 2026 at 1:44 pm

    It looks like you’re running the DotNetOpenAuth build that targets .NET 3.5. A breaking change that .NET 4.0 introduced was the requirement for different security attributes. You can get the DotNetOpenAuth build that targets .NET 4.0 from NuGet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have ASP.NET MVC 3 application which is integrated with Google Checkout API .
I have been writing an application using ASP.Net MVC4, where the majority of the
I have ASP.NET web pages for which I want to build automated tests (using
I have ASP.NET project which do some file access and manipulation, the methods which
I have asp.net website name http://www.go4sharepoint.com I have tried almost all ways to improve
Environment In my solution I have three projects, they are: Web (Asp.net MVC4) Model
In a ASP.NET MVC 4 app I have a view with a paged list
I have asp.net app where I am using gridview for data showing, editing and
I have asp.net project which has got GridViews, Buttons, Navigators etc... I have 10-15
I have asp.net web application. after I ran app the application_Start called. if I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.