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

  • SEARCH
  • Home
  • 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 993211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:23:08+00:00 2026-05-16T06:23:08+00:00

I created a custom Membership Provider which is now working in production just fine

  • 0

I created a custom Membership Provider which is now working in production just fine validating my WCF calls.

I do have an issue every now and then that for some unknown reason my provider cannot validate the user. In those cases I do not want the ValidateUser function to just return false, so I thought of throwing and excception with a little more help (not too much, just a little).

My problem is, even though I am throwing a ProviderException the client always gets a MessageSecurityException with no helpful info… just the good old:

“An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.”

with “An error occurred when verifying security for the message.” in the Inner.

How can I get the message I am throwing in my own ValidateUser method? what about a custom behavior?

Thanks in advance

  • 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-05-16T06:23:09+00:00Added an answer on May 16, 2026 at 6:23 am

    I found this post that led me to a solution, I’m not sure if it is the right move

    Properly catch SecurityTokenException from a WCF UserNamePasswordValidator

    Basically I have to throw a FaultException which I’m not really happy abou because my Membership Provider implementation is WCF agnostic (or at least was until now) now it knows about FaultExceptions 🙁
    Is there a better solution out there?

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

Sidebar

Related Questions

I am creating custom membership provider for my asp.net application. I have also created
I created custom membership provider for asp.net mvc applications and it all works fine
We have created a custom membership provider, but we have inherited the Role and
I have created a custom CreateUser in Asp.Net Membership. Now what i want is
We have created a custom membership provider that we are using in one of
I have a simple create user wizard and custom membership provider which was taken
I set up the SQL Membership provider for my WCF service. I have custom
I've created custom toggle slide animation. Its working fine as expected but its not
I have an ASP.NET MVC web application that implements a custom membership provider. The
I made a custom membership provider and overrode the ValidateUser method, but now 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.