web.config

<< Click to Display Table of Contents >>

Navigation:  Administration and Configuration > App Config Files >

web.config

The web.config file is found in the \Program Files\EarthSoft\Enterprise7 folder. Typically, this file only needs modification for installations that utilize LDAP authentication. Full documentation for this file may be found at Microsoft MSDN Library.

 

 

Note: The default <customErrors mode="RemoteOnly"/> setting displays a generic error message "An error has occured". Clients can update the customErrors mode to "Off" instead of "RemoteOnly" if they want to see error details.

 

 

<?xml version="1.0" encoding="utf-8"?>

<configuration>

<configSections>

  <!--<section name="licenses" type="EarthSoft.Registration.Configuration.LicenseConfigurationSection, EarthSoft.Registration" />-->

</configSections>

<!--<licenses configSource="bin\licenses.config" />-->

<connectionStrings configSource="bin\connectionStrings.config"/>

<appSettings>

  <add key="ActiveReportsLicense"

    value="PERhdGFEeW5hbWljc0xpY2Vuc2UgbmFtZT0iTWF0aGV3IFdlYXZlciIgZW1haWw9Im13ZWF2ZXJAZWFydGhzb2Z0LmNvbSIgc2VyaWFsPSJERC1BUE4tNjAtRDAxMDkwOCIgaG9zdGVkPSJVMEpNUVZoSlRsUXhNelE9Ij48TGljZW5zZUtleT54OGJaN1V2WGlheitxZlRwenZCVE1VZloyanRFOGxOdzdpZDZyczB5b0ZzZG10dkJGVEV5QlhRRHYzN3AvNEd0dS9FQUpYWVB2cHZpclJmTk1tUHJCL2R0cVp5eTdUVVc8L0xpY2Vuc2VLZXk+PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+PFNpZ25lZEluZm8+PENhbm9uaWNhbGl6YXRpb25NZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy9UUi8yMDAxL1JFQy14bWwtYzE0bi0yMDAxMDMxNSIgLz48U2lnbmF0dXJlTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3JzYS1zaGExIiAvPjxSZWZlcmVuY2UgVVJJPSIiPjxUcmFuc2Zvcm1zPjxUcmFuc2Zvcm0gQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjZW52ZWxvcGVkLXNpZ25hdHVyZSIgLz48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIiAvPjxEaWdlc3RWYWx1ZT5YWjRRajdkTk8wanRUeDRkODVCUmE3by9iaFE9PC9EaWdlc3RWYWx1ZT48L1JlZmVyZW5jZT48L1NpZ25lZEluZm8+PFNpZ25hdHVyZVZhbHVlPmNsU3N0aFNmaCsrUTBSTUdjT1htWllVRjlCd0pndnRNUEJERUtsVFJNZjJyQVBuR3lyQ3JOVXhheFNnS2tsY2ZxSkdTcFVEZUg5ZFlyMFF2Z1BUYnlBPT08L1NpZ25hdHVyZVZhbHVlPjwvU2lnbmF0dXJlPjwvRGF0YUR5bmFtaWNzTGljZW5zZT4="/>

  <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>

 

  <add key="owin:AutomaticAppStartup" value="false"/>

  <add key="AppContext.SetSwitch:Switch.System.Net.DontEnableSchUseStrongCrypto" value="false"/>

  <add key="AppContext.SetSwitch:Switch.System.Net.DontEnableSystemDefaultTlsVersions" value="false"/>

 

  <add key="AppContext.SetSwitch:Switch.System.ServiceModel.DisableUsingServicePointManagerSecurityProtocols" value="false"/>

 

  <add key="AppContext.SetSwitch:Switch.System.ServiceModel.DontEnableSystemDefaultTlsVersions" value="true"/>

</appSettings>

 

<system.web>

<httpCookies requireSSL="true" lockItem="true"/>

 

 

  <authentication mode="None"/>

  <compilation targetFramework="4.7"/>

  <httpRuntime targetFramework="4.7" executionTimeout="240" maxRequestLength="10240" maxUrlLength="2083" enableVersionHeader="false"/>

  <customErrors mode="RemoteOnly"/>

  <httpHandlers>

    <add path="*.nls.js" verb="*" type="EarthSoft.Server.Helpers.ScriptTranslator"/>

    <add verb="*" path="Reserved.ReportViewerWebControl.axd"

      type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"

      validate="false"/>

  </httpHandlers>

</system.web>

<system.webServer>

  <validation validateIntegratedModeConfiguration="false"/>

  <modules>

    <remove name="FormsAuthentication"/>

    <remove name="WebDAVModule"/>

  </modules>

  <handlers>

    <remove name="WebDAV"/>

    <remove name="ExtensionlessUrlHandler-Integrated-4.0"/>

    <remove name="OPTIONSVerbHandler"/>

    <remove name="TRACEVerbHandler"/>

    <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler"

      preCondition="integratedMode,runtimeVersionv4.0"/>

    <add name="ReportViewerWebControlHandler" verb="*" path="Reserved.ReportViewerWebControl.axd" preCondition="integratedMode"

      type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>

  </handlers>

  <rewrite>

    <rules>

      <!-- Extracts JWT token from URL segment and converts it to query parameter -->

      <rule name="TOKEN">

        <match url="^token/(.+)/api/(.+)$"/>

        <action type="Rewrite" url="api/{R:2}?token={R:1}" appendQueryString="true"/>

        <conditions>

          <add input="{QUERY_STRING}" pattern="(.*)"/>

        </conditions>

      </rule>

      <rule name="REPORT-SORT">

        <match url="^api/reports/(.+)/sort/(.+)/FeatureServer/(.+)$"/>

        <action type="Rewrite" url="api/reports/{R:1}/FeatureServer/{R:3}?orderByFields={R:2}" appendQueryString="true"/>

        <conditions>

          <add input="{QUERY_STRING}" pattern="(.*)"/>

        </conditions>

      </rule>

      <!-- Changes api_key in query parameter to token -->

      <rule name="API_KEY">

        <match url="(.*)"/>

        <action type="Rewrite" url="{R:0}?{C:1}token={C:2}" appendQueryString="false"/>

        <conditions>

          <add input="{QUERY_STRING}" pattern="(.*)api_key=(.+)"/>

        </conditions>

      </rule>    

    </rules>

  </rewrite>

  <httpProtocol>

    <customHeaders>

      <clear/>

 

      <!-- see https://scotthelme.co.uk/hardening-your-http-response-headers/ -->

      <add name="Strict-Transport-Security" value="max-age=31536000; includeSubDomains"/>

      <add name="Content-Security-Policy"

        value="default-src 'self' 'unsafe-inline' 'unsafe-eval' blob: data: *.googleapis.com *.gstatic.com *.arcgis.com *.arcgisonline.com *.microsoftonline.com http://a.tile.openstreetmap.org"/>

      <add name="X-Frame-Options" value="SAMEORIGIN"/>

      <add name="X-Xss-Protection" value="1; mode=block"/>

      <add name="X-Content-Type-Options" value="nosniff"/>

    </customHeaders>

  </httpProtocol>

  <staticContent>

    <mimeMap fileExtension=".json" mimeType="application/json"/>

    <mimeMap fileExtension=".woff" mimeType="font/woff"/>

    <mimeMap fileExtension=".woff2" mimeType="font/woff2"/>

  </staticContent>

</system.webServer>

<runtime>

  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

    <dependentAssembly>

      <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35"/>

      <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35"/>

      <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35"/>

      <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35"/>

      <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed"/>

      <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35"/>

      <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35"/>

      <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>

      <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>

      <bindingRedirect oldVersion="1.0.0.0-5.2.7.0" newVersion="5.2.7.0"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>

      <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Infragistics4.Win.v12.2" publicKeyToken="7dd5c3163f2cd0cb" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-12.2.20122.2123" newVersion="12.2.20122.2123"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="System.IdentityModel.Tokens.Jwt" publicKeyToken="31bf3856ad364e35" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-5.1.4.0" newVersion="5.1.4.0"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Syncfusion.Calculate.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-17.4460.0.46" newVersion="17.4460.0.46"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Syncfusion.Chart.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-17.4460.0.46" newVersion="17.4460.0.46"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Syncfusion.Chart.Windows" publicKeyToken="3d67ed1f87d44c89" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-17.4460.0.46" newVersion="17.4460.0.46"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="syncfusion.compression.base" publicKeyToken="3d67ed1f87d44c89" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-17.4460.0.46" newVersion="17.4460.0.46"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Syncfusion.DocIO.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-17.4460.0.46" newVersion="17.4460.0.46"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Syncfusion.ExcelToPDFConverter.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-17.4460.0.46" newVersion="17.4460.0.46"/>

    </dependentAssembly>

  <dependentAssembly>

      <assemblyIdentity name="Syncfusion.DocToPDFConverter.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-17.4460.0.46" newVersion="17.4460.0.46"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Syncfusion.Pdf.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-17.4460.0.46" newVersion="17.4460.0.46"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Syncfusion.PdfViewer.Windows" publicKeyToken="3d67ed1f87d44c89" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-17.4460.0.46" newVersion="17.4460.0.46"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Syncfusion.XlsIO.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-17.4460.0.46" newVersion="17.4460.0.46"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Syncfusion.XlsIO.Windows" publicKeyToken="3d67ed1f87d44c89" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-17.4460.0.46" newVersion="17.4460.0.46"/>

    </dependentAssembly>

    <dependentAssembly>

      <assemblyIdentity name="Microsoft.SqlServer.Types" publicKeyToken="89845dcd8080cc91" culture="neutral"/>

      <bindingRedirect oldVersion="0.0.0.0-15.0.0.0" newVersion="12.0.0.0"/>

    </dependentAssembly>      

  </assemblyBinding>

  </runtime>

 

<system.codedom>

  <compilers>

    <compiler language="c#;cs;csharp" extension=".cs"

      type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

      warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701"/>

    <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"

      type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

      warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>

  </compilers>

</system.codedom>

</configuration>