﻿<?xml version="1.0" encoding="utf-8"?>
<!--
  Para obtener más información sobre cómo configurar la aplicación ASP.NET, visite
  https://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <configSections>
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  </configSections>
  <connectionStrings>
    <!-- IMPORTANTE! RECORDAR CAMBIAR CADENA DE CONEXION A BASE DE DATOS DE PRODUCCIÓN -->
    <!--<add name="TrylogycContext" connectionString="server=W7SERVER;User ID=sa;password=7Ry1ogyc;Integrated Security=SSPI;database=Trylogyc" providerName="System.Data.SqlClient" />-->
    <!--<add name="TrylogycContext" connectionString="server=localhost;User ID=w1181780_suncha;password=doDAvawi82;Integrated Security=SSPI;database=w1181780_suncha" providerName="System.Data.SqlClient" /-->
    <!--add name="TrylogycContext" connectionString="server=192.168.20.20;User ID=sa;password=7Ry1ogyc;Persist Security Info=False;database=Trylogyc" providerName="System.Data.SqlClient"/-->
    <!--add name="TrylogycContext" connectionString="data source=DESKTOP-47G94IE\SQLEXPRESS;    initial catalog=Trylogyc;persist security info=True;     Integrated Security=SSPI;" providerName="System.Data.SqlClient" /-->
    <add name="TrylogycContext" connectionString="server=200.80.42.30;User ID=mivancic_sa;password=7Ry1ogyc;Persist Security Info=False;database=mivancic_Trylogyc" providerName="System.Data.SqlClient"/>
  </connectionStrings>
  <!--
    For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.

    The following attributes can be set on the <httpRuntime> tag.
      <system.Web>
        <httpRuntime targetFramework="4.6.2" />
      </system.Web>
  -->
  <system.web>
    <sessionState timeout="120" />
    <customErrors mode="Off" />
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.6.1" />
    <httpRuntime />
    <!--compilation debug="true" strict="false" explicit="true" targetFramework="4.0" /-->
    <!--httpRuntime /-->
    <pages controlRenderingCompatibilityVersion="4.0">
      <namespaces>
        <add namespace="System.Web.Optimization" />
      </namespaces>
      <controls>
        <add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
      </controls>
    </pages>
    <httpModules>
      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
    </httpModules>
  </system.web>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <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="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
      </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.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1" />
      </dependentAssembly>
      <!--dependentAssembly>
        <assemblyIdentity name="Microsoft.AI.Agent.Intercept" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.4.0.0" newVersion="2.4.0.0" />
      </dependentAssembly-->
    </assemblyBinding>
  </runtime>
  <system.webServer>
    <directoryBrowse enabled="false" />
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
      <remove name="TelemetryCorrelationHttpModule" />
      <add name="TelemetryCorrelationHttpModule" type="Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule, Microsoft.AspNet.TelemetryCorrelation" preCondition="integratedMode,managedHandler" />
      <remove name="ApplicationInsightsWebTracking" />
      <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
    </modules>
    <!--<httpProtocol>
      <customHeaders>
        <clear />
        <add name="X-Frame-Options" value="ALLOW-FROM https://www.mercadopago.com.ar/*;" />
        <add name="Content-Security-Policy" value="frame-ancestors https://www.mercadopago.com.ar/*;" />
      </customHeaders>
    </httpProtocol>-->
    <!--Comentar Lineas 70 a 84 para deshabilitar redirección segura con SSL/ https-->
    <!--rewrite>
      <rules>
        <clear />
        <rule name="Force HTTPS" stopProcessing="true">
          <match url="(.*)" />
          <conditions logicalGrouping="MatchAll">
           <add input="{HTTPS}" pattern="off" ignoreCase="true" />
           <add input="{REQUEST_URI}" negate="true" pattern="\w+(?=int\b)" ignoreCase="true" />
           <add input="{REQUEST_URI}" negate="true" pattern="^error\.aspx$" ignoreCase="true" />
           <add input="{REQUEST_URI}" negate="true" pattern="^showpdf\.aspx$" ignoreCase="true" />        
          </conditions>
          <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
        </rule>
      </rules>
    </rewrite-->
    <!--//Fin Comentar Lineas 70 a 84 para deshabilitar redirección segura con SSL/ https-->
  </system.webServer>
  <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
      <parameters>
        <parameter value="mssqllocaldb" />
      </parameters>
    </defaultConnectionFactory>
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    </providers>
  </entityFramework>
  <appSettings>
    <!--Endpoint de la API del sitio-->
    <!--add key="WebsiteAPIEndpoint" value="https://localhost:44336/api/service" /-->

    <add key="WebsiteAPIEndpoint" value="http://mivancic.wa2.toservers.com/apiWebsite/api/service" />
    <!--add key="WebsiteAPIEndpoint" value="http://192.168.20.20:1502/ApiWebSite/api/service" /-->
    <!--Tiempo (en minutos) de duración de la sesión de usuario-->
    <add key="SessionTimeOut" value="3" />
    <!--TOKEN Mercado Pago SANDBOX (Comentar para producción) -->
    <add key="tokenMpagoSandBox" value="TEST-803559796931547-061512-1c5326e2a6805c225624b7bc9dc17ef8-229476782" />
    <!--TOKEN Mercado Pago PRODUCCION -->
    <add key="tokenMpagoProduccion" value="TEST-803559796931547-061512-1c5326e2a6805c225624b7bc9dc17ef8-229476782" />
    <!-- Booleano que establece si se corre en entorno de prueba (sandbox) o produccion -->
    <add key="isSandbox" value="true" />
    <!--URL del endpoint del servicio de escucha para entorno sandbox -->
    <add key="sandboxPostbackUrl" value="EscuchaPagos.aspx" />
    <!--URL del endpoint del servicio de escucha para entorno produccion -->
    <add key="productionPostbackUrl" value="EscuchaPagos.aspx" />
    <!--Establece la visualización de la columna Pagar de la grilla del cliente -->
    <add key="displayPagar" value="true" />
    <!--Establece si los archivos .PDF se recuperaran desde un FTP. Si es False, se recuperan desde la carpeta local "PDF" -->
    <add key="retrievePdfFromFTP" value="false" />
    <add key="ftpAddress" value="ftp://wa2.toservers.com/public_html/PDF/" />
    <add key="ftpUser" value="marmeli1" />
    <add key="ftpPassWord" value="MZMF5xWIfm" />
    <add key="email" value="marceloivancich@gmail.com" />
    <add key="password" value="N1ko20i5" />
    <add key="site" value="Descarga Facturas Cooperativa LGSM" />
    <add key="host" value="smtp.gmail.com" />
    <add key="port" value="587" />
    <add key="usedefaultcredentials" value="true" />
    <add key="enablessl" value="true" />
    <!--Agregados para nuevo funcionamiento con Macro Clic -->
    <!--Secret Key Macro Click Sandbox -->
    <add key="secretKeySandboxMacro" value="COOPERATIVADEELECTRICIDADDEMONTECARLOLIMITADA_c737fd0e-9902-48a8-8b45-a4dff8d76aff" />
    <!--GUID Macro Click Sandbox -->
    <add key="guidComercioSandboxMacro" value="c93398b7-ff87-49d2-b4c1-897a5c227a6d" />
    <!--URL Macro Click Sandbox -->
    <add key="urlEnvioSandbox" value="https://sandboxpp.asjservicios.com.ar" />
    <!--Secret Key Macro Click Produccion -->
    <add key="secretKeyProduccionMacro" value="" />
    <!--GUID Macro Click Produccion -->
    <add key="guidComercioProduccionMacro" value="" />
    <!--URL Macro Click Produccion -->
    <add key="urlEnvioProduccion" value="https://botonpp.asjservicios.com.ar" />
    <!--Establece la visualización del botón Macro Click de la grilla del cliente -->
    <add key="botonMacroClick" value="true" />
    <!--Establece la visualización del botón MercadoPago de la grilla del cliente -->
    <add key="botonMercadoPago" value="True" />
    <!--Establece la descripción del pago en Macro -->
    <add key="descClientePagoMacro" value="CEML" />

  </appSettings>
  <!-->system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /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.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
    </compilers>
  </system.codedom-->
  <system.serviceModel>
    <bindings />
    <client />
  </system.serviceModel>
</configuration>