Solved

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

Posted on 2014-01-26
2
64 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_
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now