Solved

Asp.net config error. How do I remove parent's default role provider in child config

Posted on 2014-01-26
2
97 Views
Last Modified: 2016-06-13
I'm getting a configuration error in my Asp.net app. The parent config for the site has got the following section (shown first below):


My application is now showing the error shown 2nd below. How do I specify in my child config file to ignore this setting?

Thanks!


1) Parent Config:
<roleManager enabled="true" cacheRolesInCookie="false" cookieName=".ASPXROLES" cookieTimeout="30" cookieRequireSSL="false" cookiePath="/" cookieSlidingExpiration="true" cookieProtection="All" defaultProvider="FSSRoleProvider" createPersistentCookie="false" maxCachedResults="25">
  <providers>
    <clear />
    <add name="FSSRoleProvider" type="SXA.PTL.Framework.Role.FSSRoleProvider" />
  </providers>
</roleManager>


2) My error:

Server Error in '/PatientOutreach' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Default Role Provider could not be found.

Source Error:


Line 1:  <?xml version="1.0" encoding="utf-8" ?>
Line 2:  <roleManager enabled="true" cacheRolesInCookie="false" cookieName=".ASPXROLES" cookieTimeout="30" cookieRequireSSL="false" cookiePath="/" cookieSlidingExpiration="true" cookieProtection="All" defaultProvider="FSSRoleProvider" createPersistentCookie="false" maxCachedResults="25">
Line 3:    <providers>
Line 4:      <clear />

Source File: C:\PPUI6.1SU5\PPUI\RoleManager.config    Line: 2
0
Comment
Question by:_Wade_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
Easwaran Paramasivam earned 500 total points
ID: 39811009
In your child, you want the RoleManager but not the provider? I don't think so that could be right.

However either rolemanager or provide expects below element which is not available. Kindly check it out.

defaultProvider="YourProvider"

Open in new window

0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question