<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="dictionaryManagement" type="MGS.Infra.Common.Dictionaries.DictionaryManagerSectionHandler,MGS.Infra.Common.Dictionaries"/>
    <section name="exceptionManagement" type="MGS.Infra.ExceptionManagement.ExceptionManagerSectionHandler,MGS.Infra.ExceptionManagement"/>
    <section name="sequenceManagement" type="MGS.Infra.SequenceManagement.SequenceManagerSectionHandler,MGS.Infra.SequenceManagement"/>
    <section name="browserManagement" type="MGS.Infra.UI.BrowserManagement.BrowserManagerSectionHandler,MGS.Infra.UI.BrowserManagement"/>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
  </configSections>
  <!--<add name="اصلی"       connectionString="workstation id=test;packet size=4096;user id=sa;data source=.\sql2008;persist security info=True;initial catalog=SHTS-Par-910808;password=123;Connect Timeout=1200"   providerName="System.Data.SqlClient" />-->
  <!--<connectionStrings>
    <add name="اصلی" connectionString="workstation id=test;packet size=4096;user id=sa;data source=mohammad-pc;persist security info=True;initial catalog=SHTS_920415;password=SQL@2012;Connect Timeout=1200" providerName="System.Data.SqlClient" />
    <add name="رسمی" connectionString="workstation id=test;packet size=4096;user id=sa;data source=mohammad-pc;persist security info=True;initial catalog=SHTS_920415;password=SQL@2012;Connect Timeout=1200" providerName="System.Data.SqlClient" />
    <add name="Shaar.SHTAS.GeneralLedgerUI.Properties.Settings.SHTASConnectionString" connectionString="Data Source=SHAARSERVER\SQL2005;Initial Catalog=SHTAS;User ID=sa" providerName="System.Data.SqlClient" />
    <add name="Shaar.SHTAS.GeneralLedgerUI.Properties.Settings.SHTASConnectionString1" connectionString="Data Source=SHAARLAPTOPDEV\SQL2005;Initial Catalog=SHTAS;User ID=sa;Password=ShaarSQL" providerName="System.Data.SqlClient" />
    <add name="Shaar.SHTAS.GeneralLedgerUI.Properties.Settings.SHTASPARANDConnectionString" connectionString="Data Source=shdeveloper;Initial Catalog=SHTASPARAND;Integrated Security=True" providerName="System.Data.SqlClient" />
    <add name="Shaar.SHTAS.GeneralLedgerUI.Properties.Settings.SHTSConnectionString" connectionString="user id=sa;data source=.;persist security info=True;initial catalog=SHT960131;password=@123@abc;Connect Timeout=1200" providerName="System.Data.SqlClient" />
    -->
  <!--<add name="Shaar.SHTAS.GeneralLedgerUI.Properties.Settings.SHTSConnectionString" connectionString="user id=sa;data source=.;persist security info=True;initial catalog=SHTS951014;password=@123@abc;Connect Timeout=1200" providerName="System.Data.SqlClient" />-->
  <!--

  </connectionStrings>-->
  <!--<add key="ConnectionString" value="workstation id=test;packet size=4096;user id=sa;data source=.\sql2008;persist security info=True;initial catalog=SHTS-Par-910808;password=123;Connect Timeout=1200" />-->
  <appSettings>
    <!--  <add key="ConnectionString" value="workstation id=DATASERVER;packet size=4096;user id=sa;data source=.;persist security info=True;initial catalog=SHTS971127;password=@123@abc;Connect Timeout=1200" />-->
    <add key="ConnectionString" value="workstation id=.;packet size=4096;user id=sa;data source=accserver;persist security info=True;initial catalog=SHTS;password=R@hk@r1800;Connect Timeout=1200"/>
    <!--<add key="ApplicationReportsPath" value="D:\ReportClinik" />
    <add key="GeneralReportsPath" value="D:\ReportClinik" />-->
    <add key="ApplicationReportsPath" value="\\accserver\ReportClinik"/>
    <add key="GeneralReportsPath" value="\\accserver\ReportClinik"/>
    <add key="DatabaseType" value="SQLServer"/>
    <add key="BindManagerMessagingStyle" value="ErrorProvider"/>
    <add key="Remoting.RemoteAccess" value="false"/>
    <add key="Remoting.Protocol" value="tcp"/>
    <add key="Remoting.ServerName" value="localhost"/>
    <add key="Remoting.Port" value="8080"/>
    <add key="Session.Timeout" value="999999999"/>
    <add key="Security.Enabled" value="TRUE"/>
    <add key="Security.ConnectionString" value="workstation id=Jebelli;packet size=4096;user id=sa;data source=accserver;persist security info=True;initial catalog=Security;password=R@hk@r1800"/>
    <!--<add key="Security.ConnectionString" value="workstation id=Jebelli;packet size=4096;user id=sa;data source=.;persist security info=True;initial catalog=Security;password=@123@abc" />-->
    <add key="Security.ExternalHumanResource" value="False"/>
    <add key="ConnectionStringToAccess" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\server\Teene\TNE_Db\Shared DB\SharedDB.mdb"/>
    <add key="ClientSettingsProvider.ServiceUri" value=""/>
  </appSettings>
  <dictionaryManagement mode="on">
    <dictionary name="DatabaseException" mode="on" assembly="MGS.Infra.Common.Dictionaries" type="MGS.Infra.Common.Dictionaries.ResourceDictionary" source="RES" resourceName="Shaar.SHTAS.Dictionary.Resources" resourceAssemblyName="Shaar.SHTAS.Dictionary"/>
  </dictionaryManagement>
  <sequenceManagement mode="on">
    <sequence name="Default" mode="on" assembly="MGS.Infra.SequenceManagement" type="MGS.Infra.SequenceManagement.GuidSequence"/>
    <sequence name="AutoIncrement" mode="on" assembly="MGS.Infra.SequenceManagement" type="MGS.Infra.SequenceManagement.AutoIncrementSequence"/>
  </sequenceManagement>
  <exceptionManagement mode="on">
    <publisher mode="on" assembly="MGS.Infra.ExceptionManagement.Publishers" type="MGS.Infra.ExceptionManagement.Publishers.ExceptionPublisher" exclude="" include="*"/>
    <publisher mode="off" assembly="MGS.Infra.ExceptionManagement.Publishers" type="MGS.Infra.ExceptionManagement.Publishers.ExceptionXMLPublisher" exclude="*" include="+MGS.Infra.ExceptionManagement.BaseApplicationException" exceptionFormat="xml" fileName="c:\ExceptionLog.xml"/>
  </exceptionManagement>
  <browserManagement mode="on">
    <browser name="Default" mode="on" assembly="MGS.Infra.UI.BrowserManagement" type="MGS.Infra.UI.BrowserManagement.WinBrowser"/>
  </browserManagement>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="MGS.Infra.UI.Messages" publicKeyToken="BED9AFDE81E2DAC3" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-1.2.0.0" newVersion="1.2.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
    <NetFx40_LegacySecurityPolicy enabled="true"/>
  </runtime>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
  </startup>
  <system.data>
    <DbProviderFactories>
      <remove invariant="MySql.Data.MySqlClient"/>
      <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
    </DbProviderFactories>
  </system.data>
  <connectionStrings>
    <add name="SmsBankEntities" connectionString="metadata=res://*/Datasets.SmsBank.csdl|res://*/Datasets.SmsBank.ssdl|res://*/Datasets.SmsBank.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=192.168.1.209;initial catalog=SHTS;user id=sa;password=@123@abc;MultipleActiveResultSets=True;App=EntityFramework&quot;"
      providerName="System.Data.EntityClient" />
    <add name="SMSEntities" connectionString="metadata=res://*/Entity.SmsBank.csdl|res://*/Entity.SmsBank.ssdl|res://*/Entity.SmsBank.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=192.168.1.209;initial catalog=SHTS;user id=sa;password=@123@abc;MultipleActiveResultSets=True;App=EntityFramework&quot;"
      providerName="System.Data.EntityClient" />
    <add name="Shaar.SHTAS.GeneralLedgerUI.Properties.Settings.SHTSConnectionString"
      connectionString="user id=sa;data source=accserver;persist security info=True;initial catalog=SHTS;password=R@hk@r1800;Connect Timeout=1200"
      providerName="System.Data.SqlClient" />
    <add name="Shaar.SHTAS.GeneralLedgerUI.Properties.Settings.SHTASConnectionString1"
      connectionString="Data Source=shdeveloper;Initial Catalog=SHTASPARAND;Integrated Security=True"
      providerName="System.Data.SqlClient" />
  </connectionStrings>
  <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
  </entityFramework>
  <system.web>
    <membership defaultProvider="ClientAuthenticationMembershipProvider">
      <providers>
        <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri=""/>
      </providers>
    </membership>
    <roleManager defaultProvider="ClientRoleProvider" enabled="true">
      <providers>
        <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400"/>
      </providers>
    </roleManager>
  </system.web>
  <system.serviceModel>
        <bindings>
            <wsHttpBinding>
        <binding name="WSHttpBinding_IAuthorizeServices">
          <security mode="TransportWithMessageCredential">
            <transport clientCredentialType="None" />
            <message clientCredentialType="UserName" />
          </security>
        </binding>
      </wsHttpBinding>
        </bindings>
        <client>
            <endpoint address="https://payaneh.larenteb.ir/AuthorizeServices.svc"
                binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IAuthorizeServices"
                contract="SecuritySvc.IAuthorizeServices" name="WSHttpBinding_IAuthorizeServices" />
        </client>
    </system.serviceModel>
</configuration>
