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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:05:44+00:00 2026-06-13T14:05:44+00:00

I have a web.config in my MVC3 application, I have an Admin area in

  • 0

I have a web.config in my MVC3 application, I have an Admin area in my MVC3 application too.

On the front end I hook asp.net users into a Customers table and my application relies on this table to operate. In the Admin area I have an Administrator Role and User but this login also works for the front end. I can create a customer for my Admin so my application doesn’t fail but ideally I would like to separate the logins from the front and Admin area.

I want to put a second web.config inside my Admin area that has a different application name so that the Admin account can never be logged into the front end. e.g.

    <profile>
      <providers>
        <clear />
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="SecurityConn" applicationName="/" />
      </providers>
    </profile>

But I don’t know where to put this or if it is even possible

applicationName="/AdminArea"
  • 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-13T14:05:46+00:00Added an answer on June 13, 2026 at 2:05 pm

    You can add more than one provider in the section with different applicationname.

    What you will need to consider is how you would switch between those providers.
    You can use the providers collection e.g.

    Membership.Providers["MyOtherProvider"].ValidateUser(username, pwd);
    

    So you will need a mechanism to know who is logging in (Admin or customer).

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

Sidebar

Related Questions

I have added the following to my web.config file in my asp.net mvc3, to
I have an ASP.NET MVC 3 application with the following web.config settings. <authentication mode=Forms>
I've written a simple web application using asp.net mvc3 and I have a login
I have configured my Web.Config file as follow in a ASP.NET MVC 2 project:
I have created an ASP.Net MVC Web Application and used NuGet to install Ninject
I have encrypted the web.config file of my MVC3 web application with aspnet_regiis.exe. BUT
I run an ASP.Net MVC3 application and have followed this Windows Azure How-To on
I have this section in the Web.config for my MVC3 application: <authentication mode=Forms> <forms
I have created an MVC3 application and added cutomerrors attribute on in web.config. It
I am developing an ASP.Net MVC 3 Web Application. I need to have my

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.