<?xml version="1.0"?>
<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" />
  </configSections>
  <runtime>
    <loadFromRemoteSources enabled="true" />
    <NetFx40_LegacySecurityPolicy enabled="true" />
  </runtime>
	<connectionStrings>
		<add name="SHTS" connectionString="Data Source=192.168.100.4;Initial Catalog=SHTS;Persist Security Info=True;User ID=sa;Password=@123@abc;Connect Timeout = 1200" providerName="System.Data.SqlClient" />
		<add name="Before95" connectionString="Data Source=192.168.100.4;Initial Catalog=SHTSBefore95;Persist Security Info=True;User ID=sa;Password=@123@abc;Connect Timeout = 1200" providerName="System.Data.SqlClient" />
	</connectionStrings>
  <appSettings>
    <!--<add key="ConnectionString" value="workstation id=DB1;packet size=4096;user id=sa;data source=.;persist security info=True;initial catalog=SHWHS;Password=@123@abc;Connect Timeout = 1200"/>-->
    <add key="ConnectionString" value="workstation id=DB1;packet size=4096;user id=sa;data source=192.168.100.4;persist security info=True;initial catalog=SHTS;Password=@123@abc;Connect Timeout = 1200" />
    <add key="IsRemoteServer" value="false" />
    <add key="ApplicationReportsPath" value="\\192.168.100.4\Reports\ANBAR\ReportRDLCs" />
    <add key="GeneralReportsPath" value="\\192.168.100.4\Reports\ANBAR\ReportRDLCs" />
    <add key="OleDBConnectionString" value="Provider=SQLOLEDB.1;Password=@123@abc;Persist Security Info=True;User ID=sa;Initial Catalog=SHWHS;Data Source=Server2" />
    <!-- Network Path Must Be Shared Folder That Has Read And Write Access To Other Clients-->
    <add key="ServerTempLocalPath" value="C:\" />
    <add key="ServerTempNetworkPath" value="C:\" />
    <!-- 1=Factory, 2=Tehran -->
    <add key="CurrentBranchID" value="1" />
    <add key="DatabaseType" value="SQLServer" />
    <!--<add key="BindManagerMessagingStyle" value="MesssageBox"/>-->
    <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="Security.Enabled" value="false" />
    <add key="Security.ConnectionString" value="workstation id=DB1;packet size=4096;user id=sa;data source=192.168.100.4;persist security info=True;initial catalog=Security;Password=@123@abc;" />
    <!--<add key="Security.ConnectionString" value="workstation id=DB1;packet size=4096;user id=sa;data source=192.168.100.4;persist security info=True;initial catalog=Security;Password=@123@abc;"/>-->
    <add key="Security.ExternalHumanResource" value="true" />
    <add key="ConnectionStringToAccess" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Projects\Accounting Total Solution\Deployment\Parand\SharedDB\SharedDB.mdb" />
    <add key="ExportFilesPathNetwork" value="\\shserver\e$\Deployment" />
    <add key="ExportFilesPathLocalServer" value="e:\Deployment" />
    <add key="TempalateFilesPath" value="E:\Projects\Accounting Total Solution\SHFTS\Shaar.SHTAS.GeneralLedgerUI\Templates" />
    <add key="Session.Timeout" value="30" />
    <add key="MultiSystem" value="on" />
    <add key="ClientSettingsProvider.ServiceUri" value="" />
  </appSettings>
  <dictionaryManagement mode="off">
    <dictionary name="DatabaseException" mode="off" assembly="MGS.Infra.Common.Dictionaries" type="MGS.Infra.Common.Dictionaries.ResourceDictionary" source="RES" resourceName="Shaar.SHWHS.Dictionary.Resources" resourceAssemblyName="Shaar.SHWHS.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>
  <system.windows.forms jitDebugging="true" />
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
  </startup>
	<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>
  <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>
</configuration>