[Mono-bugs] [Bug 504611] New: authentication mode="Windows" in web.config file causes exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun May 17 16:16:32 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=504611


           Summary: authentication mode="Windows" in web.config file
                    causes exception
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web.Services
        AssignedTo: atsushi at ximian.com
        ReportedBy: kobruleht2 at hot.ee
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Line 
        <authentication mode="Windows"/>

in web.config
causes exception even if it is actually not used at all.

Steps to reproduce:

Call asmx web service in kuuluta subdirectory using web.config file :

containing
        <authentication mode="Windows"/>


Observed:

Server Error in '/' Application

--------------------------------------------------------------------------------

The section <authentication> can't be defined in this configuration file (the
allowed definition context is 'MachineToApplication').
(/www/apache/domains/comp.com/htdocs/kuuluta/web.config line 46)
Description: HTTP 400. Error processing request.

Stack Trace: 

System.Configuration.ConfigurationErrorsException: The section <authentication>
can't be defined in this configuration file (the allowed definition context is
'MachineToApplication').
(/www/apache/domains/ddddddddddddd/htdocs/kuuluta/web.config line 46)  at
System.Configuration.SectionInfo.ReadData (System.Configuration.Configuration
config, System.Xml.XmlReader reader, Boolean overrideAllowed) [0x0007d] in
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Configuration/System.Configuration/SectionInfo.cs:182
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader
reader, System.Configuration.Configuration config, Boolean overrideAllowed,
Boolean root) [0x0014b] in
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:324
  at System.Configuration.SectionGroupInfo.ReadData
(System.Configuration.Configuration config, System.Xml.XmlReader reader,
Boolean overrideAllowed) [0x00018] in
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:277
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader
reader, System.Configuration.Configuration config, Boolean overrideAllowed,
Boolean root) [0x0014b] in
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:324
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader
reader, System.Configuration.Configuration config, Boolean overrideAllowed)
[0x00007] in
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Configuration/System.Configuration/SectionGroupInfo.cs:269
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader
reader, System.String fileName) [0x000ec] in
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Configuration/System.Configuration/Configuration.cs:496
  at System.Configuration.Configuration.Load () [0x0004a] in
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Configuration/System.Configuration/Configuration.cs:457
  at System.Configuration.Configuration.Init (IConfigSystem system,
System.String configPath, System.Configuration.Configuration parent) [0x00065]
in
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Configuration/System.Configuration/Configuration.cs:117
  at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system, System.String
locationSubPath) [0x0005c] in
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Configuration/System.Configuration/Configuration.cs:79
  at System.Configuration.InternalConfigurationFactory.Create (System.Type
typeConfigHost, System.Object[] hostInitConfigurationParams) [0x0000e] in
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Configuration/System.Configuration/InternalConfigurationFactory.cs:42
  at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration
(System.String path, System.String site, System.String locationSubPath,
System.String server, System.String userName, System.String password) [0x0002f]
in
/var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:246 

--------------------------------------------------------------------------------
Version information: Mono Version: 2.0.50727.1433; ASP.NET Version:
2.0.50727.1433 

Expected:

This line presence should not cause exception.

-- 
Configure bugmail: http://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