[Mono-bugs] [Bug 333745] New: System.Web.Configuration.WebConfigurationManager. GetSection reads from global web.config instead of local app.config
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Oct 14 17:22:34 EDT 2007
https://bugzilla.novell.com/show_bug.cgi?id=333745
Summary: System.Web.Configuration.WebConfigurationManager.GetSect
ion reads from global web.config instead of local
app.config
Product: Mono: Class Libraries
Version: 1.2
Platform: i386
OS/Version: openSUSE 10.3
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: rlai at irismedia.com
QAContact: mono-bugs at ximian.com
Found By: ---
Description of Problem:
System.Web.Configuration.WebConfigurationManager.GetSection reads
from global web.config instead of local app.config
Steps to reproduce the problem:
run the following code:
MembershipSection section =
(MembershipSection)WebConfigurationManager.GetSection
("system.web/membership");
Console.WriteLine("DefaultProvider[" + section.DefaultProvider + "]");
for (int i = 0;i < section.Providers.Count;i++) {
Console.WriteLine(" " + section.Providers[i].Name + "[" +
section.Providers[i].Type + "]");
}
using app.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<membership defaultProvider="BugTestMembershipProvider">
<providers>
<clear/>
<add name="BugTestMembershipProviderName"
type="BugTestMembershipProviderType" />
</providers>
</membership>
</system.web>
</configuration>
Actual Results:
DefaultProvider[AspNetSqlMembershipProvider]
AspNetSqlMembershipProvider[System.Web.Security.SqlMembershipProvider,
System.
Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]
Expected Results:
DefaultProvider[BugTestMembershipProvider]
BugTestMembershipProviderName[BugTestMembershipProviderType]
How often does this happen?
always
Additional Information:
problem also occurs on windows
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list