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 7931683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:47:41+00:00 2026-06-03T20:47:41+00:00

I have a complicated question, at least for me :), and it’s more architecture

  • 0

I have a complicated question, at least for me :), and it’s more architecture than coding, i would say.

Ok, I am creating a MVC website. I have a wcf service and that’s my only way of communication with my database, business objects, etc.

  • Website (MVC)
  • Hosting Layer (WCF)
  • Service Layer (interface and impletementation for the WCF – class library)
  • Business Layer (class library)
  • Data Layer (Plinqo – L2S)
  • Framework (class library – here i have my custom membership)

in other words, in my web.config at the mvc layer i don’t have any connection string, just the web service mambo jambo. i have the default membership and role provider not implemented.

I implemented a custom Membership and Role Provider. BUT, i use it at the service layer level (i declared it at the WCF’s web.config) It means that, from the MVC i call my webservice client’s validate method (client.ValidateUser(User)) and it’s then when i do my Membership.ValidateUser(username, password).

If you need to know the reasons i did it this way, i will add it. Just ask me.

My question… In my Controllers, when i add the roles attributes to my methods, i know it’s going to fail because mvc is going to try to use whatever membership and role provider is in the webconfig… of course, i haven’t implemented it at the mvc level, but at the wcf. so it’s going to pop a notImplemented error. i haven’t tried but is my guts feeling. SHOULD I IMPLEMENT IT in my mvc and then from this custom membership and role provider call my wcf (database call) and remove it my current membership provider and role provider?

i know it’s all tricky and confusing. if you have any doubts, let me know.

thank you so much.

  • 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-03T20:47:43+00:00Added an answer on June 3, 2026 at 8:47 pm

    You have to create a custom implementation of the Authorize filer and override the OnAuthorization method where you have to make the WCF call and do all the work.

    http://geekswithblogs.net/brians/archive/2010/07/08/implementing-a-custom-asp.net-mvc-authorization-filter.aspx

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

Sidebar

Related Questions

I have a rather complicated question (for me at least) I have the following
My question is related to Database Design for Revisions? but more complicated. I have
I have a somewhat complicated branching structure at work (at least for me). It
I have a follow up to complicated mysql question that I recently asked: Show
I have least knowledge on network domain.Please bare with my question if it is
I have a complicated problem and I hope to explain it clearly possible... I
I have a complicated MySQL query which takes a lot of time, selecting from
I have a complicated report that I need to draw with GDI+ (I don't
I have this complicated slider that utilizes tons of animation. I'm trying to find
I have some complicated, problem to be solved. Now I need to write such

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.