[Mono-aspnet-list] Why trust level full in application web.config causes exception

Andrus kobruleht2 at hot.ee
Mon Apr 11 04:45:39 EDT 2011


Application Web.config contains:

<trust level="Full" />

In Mono this causes exception below.
How to fix ?

In .NET it works.

Andrus.


Server Error in '/' Application

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

The section <trust> can't be defined in this configuration file (the allowed
definition context is 'MachineToApplication').
(/var/www/html/myapp/web.config line 28)

Description: HTTP 400. Error processing request.

Stack Trace:

System.Configuration.ConfigurationErrorsException: The section <trust> can't
be defined in this configuration file (the allowed definition context is
'MachineToApplication'). (/var/www/html/eeva/web.config line 28)
  at System.Configuration.SectionInfo.ReadData
(System.Configuration.Configuration config, System.Xml.XmlReader reader,
Boolean overrideAllowed) [0x00000] in <filename unknown>:0
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader
reader, System.Configuration.Configuration config, Boolean overrideAllowed,
Boolean root) [0x00000] in <filename unknown>:0
  at System.Configuration.SectionGroupInfo.ReadData
(System.Configuration.Configuration config, System.Xml.XmlReader reader,
Boolean overrideAllowed) [0x00000] in <filename unknown>:0
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader
reader, System.Configuration.Configuration config, Boolean overrideAllowed,
Boolean root) [0x00000] in <filename unknown>:0
  at System.Configuration.SectionGroupInfo.ReadRootData
(System.Xml.XmlReader reader, System.Configuration.Configuration config,
Boolean overrideAllowed) [0x00000] in <filename unknown>:0
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader
reader, System.String fileName) [0x00000] in <filename unknown>:0
  at System.Configuration.Configuration.Load () [0x00000] in <filename
unknown>:0
  at System.Configuration.Configuration.Init (IConfigSystem system,
System.String configPath, System.Configuration.Configuration parent)
[0x00000] in <filename unknown>:0
  at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system, System.String
locationSubPath) [0x00000] in <filename unknown>:0
  at System.Configuration.InternalConfigurationFactory.Create (System.Type
typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in
<filename unknown>:0
  at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration
(System.String path, System.String site, System.String locationSubPath,
System.String server, System.String userName, System.String password,
Boolean fweb) [0x00000] in <filename unknown>:0

--------------------------------------------------------------------------------
Version information: Mono Runtime Version: 2.10.1 (tarball Wed Feb 23
20:24:20 UTC 2011); ASP.NET Version: 2.0.50727.1433



More information about the Mono-aspnet-list mailing list