﻿<?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>

    <add name="TrylogycContext" connectionString="server=200.80.42.30;User ID=marmeli1_sa;password=7Ry1ogyc;Persist Security Info=False;database=marmeli1_Trylogyc" providerName="System.Data.SqlClient"/>

  </connectionStrings>



  <system.web>

    <sessionState timeout="5" />

    <customErrors mode="Off" />

    <compilation strict="false" explicit="true" targetFramework="4.6.1" />

    <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="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />

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

      </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="Empresa" value="MONTECARLO"/>

    <add key="PuntoPorComa" value ="1"/>	

    <add key="WebsiteAPIEndpoint" value="https://www.cemlonline.com.ar/apiWebsite/api/service" />

    <!--Tiempo (en minutos) de duración de la sesión de usuario-->

    <add key="SessionTimeOut" value="5" />

    <!--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="APP_USR-1323683807057475-092213-acd4d096aa068041e508508169de15a4-198710882" />

    <!-- Booleano que establece si se corre en entorno de prueba (sandbox) o produccion -->

    <add key="isSandbox" value="false" />

    <!--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 aparece o no Chequeado el item AceptaFacturas Por mail -->

    <add key="aceptaRecibirMail" 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="COOPERATIVADEELECTRICIDADDEMONTECARLOLIMITADA_0bdd5eb3-96a8-4a91-9f41-484c3fefaa16" />

    <!--GUID Macro Click Produccion -->

    <add key="guidComercioProduccionMacro" value="f3c5876e-5292-4e0f-9101-c9a7a45baa12" />

    <!--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" />

   <!--Establece la visualización del botón PagoFacil y parametros necesarios -->

    <add key="BotonPagarFacil" value="false"/>

    <add key="urlPagofacil" value="https://pagosenlineapruebas.pagospyme.com/api/pagosimplificado"/>

    <add key="api_keyPagofacil" value="8cd7b5b8-5f89-42d6-b1e8-612e4df189ed"/>



  </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>