Maps url to a Settings instance.

Namespace:  EPiServer.Configuration
Assembly:  EPiServer.Configuration (in EPiServer.Configuration.dll) Version: 5.2.375.236

Syntax

C#
public static Settings MapUrlToSettings(
	Uri url
)

Parameters

url
Type: System..::.Uri
The URL.

Return Value

Remarks

This is used for EPiServer Enterprise solutions where you have multiple <settings> sections in the same web.config file. if the host name that is safe to use for DNS resolution does NOT exist then it maps to fallback host which is indicates with "*"

Exceptions

ExceptionCondition
System..::.ArgumentNullException Thrown ArgumentNullException if the uri is null
System..::.ArgumentException Thrown ArgumentException if the uri is NOT absolute
System.Configuration..::.ConfigurationErrorsException If the uri absolute path is NOT equal with the site settings absoulte path. Hits when the uri has a path that is outside of the application root

See Also