Solved

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

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 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