473,404 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

web.config inheritance pain!

I have a virtual website or what ever it's really called in IIS6 under my
root intranet site both use ASP.NET 2.0... my intrante site has a roles
provider in it, which is set as the default provider for that site. When I
try to go to the virtual site now though under http://intranet/othersite
(which is really our Sourcegear vault server site) the othersite loads up
with an error that says

Configuration Error
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.
Could not load type 'IntranetRoleProvider'.
Source File: </bC:\Inetpub\wwwIntranet\web.config<b&nbsp;&nbsp; Line:
</b86
<br><br>

<hr width=100% size=1 color=silver>

<b>Version Information:</b>&nbsp;Microsoft .NET Framework
Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

[HttpException]: Could not load type 'IntranetRoleProvider'.
at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean
throwOnError, Boolean ignoreCase)
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String
propertyName, ConfigurationElement configElement, XmlNode node, Boolean
checkAptcaBit, Boolean ignoreCase)
[ConfigurationErrorsException]: Could not load type 'IntranetRoleProvider'.
(C:\Inetpub\wwwIntranet\web.config line 86)
at System.Web.Security.Roles.Initialize()
at System.Web.Security.Roles.get_CacheRolesInCookie()
at System.Web.Security.RoleManagerModule.OnLeave(Obje ct source, EventArgs
eventArgs)
at
System.Web.HttpApplication.SyncEventExecutionStep. System.Web.HttpApplication.IExecutionStep.Execute( )
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)
-->
--.

which did not show up until we started using a role provider on the parent
site! how do I prevent this sub virtual site from inheriting the parent site
web.config's role provider? I even have this in there now and it doesnt help
at all

<siteMap enabled="false"></siteMap>

<roleManager enabled="false"></roleManager>

that's in the sub site trying to disable the two new items... but doesnt
seem to help... what should I do? thanks!
Nov 20 '06 #1
1 5088
You can clear the providers from the parent site in the "othersite"
web.config file.

<system.web>
<roleManager>
<providers>
<clear /<!-- this line clears the providers from parent site
and from machine.config -->
<add name="othersiteprovider" type="othersideprovidertype"
attrib1="value1" attrib2="value2" />
</providers>
</roleManager>
</system.web>

Best regards,
Sherif El-Meteny

"Smokey Grindle" <no****@dontspamme.comwrote in message
news:eW**************@TK2MSFTNGP03.phx.gbl...
>I have a virtual website or what ever it's really called in IIS6 under my
root intranet site both use ASP.NET 2.0... my intrante site has a roles
provider in it, which is set as the default provider for that site. When I
try to go to the virtual site now though under http://intranet/othersite
(which is really our Sourcegear vault server site) the othersite loads up
with an error that says

Configuration Error
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.
Could not load type 'IntranetRoleProvider'.
Source File: </bC:\Inetpub\wwwIntranet\web.config<b&nbsp;&nbsp; Line:
</b86
<br><br>

<hr width=100% size=1 color=silver>

<b>Version Information:</b>&nbsp;Microsoft .NET Framework
Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

[HttpException]: Could not load type 'IntranetRoleProvider'.
at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean
throwOnError, Boolean ignoreCase)
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String
propertyName, ConfigurationElement configElement, XmlNode node, Boolean
checkAptcaBit, Boolean ignoreCase)
[ConfigurationErrorsException]: Could not load type
'IntranetRoleProvider'. (C:\Inetpub\wwwIntranet\web.config line 86)
at System.Web.Security.Roles.Initialize()
at System.Web.Security.Roles.get_CacheRolesInCookie()
at System.Web.Security.RoleManagerModule.OnLeave(Obje ct source,
EventArgs eventArgs)
at
System.Web.HttpApplication.SyncEventExecutionStep. System.Web.HttpApplication.IExecutionStep.Execute( )
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously)
-->
--.

which did not show up until we started using a role provider on the parent
site! how do I prevent this sub virtual site from inheriting the parent
site web.config's role provider? I even have this in there now and it
doesnt help at all

<siteMap enabled="false"></siteMap>

<roleManager enabled="false"></roleManager>

that's in the sub site trying to disable the two new items... but doesnt
seem to help... what should I do? thanks!


Nov 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Serena | last post by:
I am attempting to complete a program with the following format: Interface2 inherits from Interface1. Both of these are virtual classes. Implementation1 inherits from Interface1. ...
20
by: km | last post by:
Hi all, In the following code why am i not able to access class A's object attribute - 'a' ? I wishto extent class D with all the attributes of its base classes. how do i do that ? thanks in...
22
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete...
15
by: Sinex | last post by:
Hi, Why does C# disallow multiple inheritance? Whats the reason behind this? Is there any advantage or is it just a method to avoid some problems (if so, what problems?) that come with multiple...
9
by: gerry | last post by:
Is there any way to prevent web.config inheritance in nested web applications ? Here is the scenario, a 3rd party asp.net web application installed on an asp.net intranet site :...
47
by: Mark | last post by:
why doesn't .NET support multiple inheritance? I think it's so silly! Cheers, Mark
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
12
by: Ben | last post by:
I have a group of settings that I'd like to have inherited by multiple sites. I'm trying this, but it's not working. wwwroot\group\web.config wwwroot\group\site1\web.config...
0
by: djmc | last post by:
Hi, I am having problems with virtual directories and web.config inheritance. I have read the section titled "Conflicts between settings on virtual and physical directories" at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.