Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-01-26
2
Medium Priority
?
123 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_
1 Comment
 
LVL 16

Accepted Solution

by:
Easwaran Paramasivam earned 2000 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

772 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